Chi2fit.Statistics.moment

You're seeing just the function moment, go back to Chi2fit.Statistics module for more information.

Specs

moment(sample :: [number()], n :: pos_integer()) :: float()

Calculates the nth moment of the sample.

Example

iex> moment [1,2,3,4,5,6], 1
3.5