Chi2fit.Statistics.momentn

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

Specs

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

Calculates the nth normalized moment of the sample.

Example

iex> momentn [1,2,3,4,5,6], 1
0.0

iex> momentn [1,2,3,4,5,6], 2
1.0

iex> momentn [1,2,3,4,5,6], 4
1.7314285714285718

Specs

momentn(sample :: [number()], n :: pos_integer(), mu :: float()) :: float()

Calculates the nth normalized moment of the sample.

Example

iex> momentn [1,2,3,4,5,6], 4, 3.5
1.7314285714285718
Link to this function

momentn(sample, n, mu, sigma)

View Source

Specs

momentn(
  sample :: [number()],
  n :: pos_integer(),
  mu :: float(),
  sigma :: float()
) :: float()

Calculates the nth normalized moment of the sample.