Chi2fit.Statistics.momentc
You're seeing just the function
momentc
, go back to Chi2fit.Statistics module for more information.
Specs
momentc(sample :: [number()], n :: pos_integer()) :: float()
Calculates the nth centralized moment of the sample.
Example
iex> momentc [1,2,3,4,5,6], 1
0.0
iex> momentc [1,2,3,4,5,6], 2
2.9166666666666665
Specs
momentc(sample :: [number()], n :: pos_integer(), mu :: float()) :: float()
Calculates the nth centralized moment of the sample.
Example
iex> momentc [1,2,3,4,5,6], 2, 3.5
2.9166666666666665