Indicado.Math.stddev

You're seeing just the function stddev, go back to Indicado.Math module for more information.

Specs

stddev([list(), ...]) :: float()

Calculates standard deviation of a given numeric list. Returns nil if list is empty.

Examples

iex> Indicado.Math.stddev([1, 2, 3, 4])
1.118033988749895

iex> Indicado.Math.stddev([5, 10, 15, 20, 40])
12.083045973594572

iex> Indicado.Math.stddev([])
nil
Link to this function

stddev(list, calculated_mean)

View Source

Specs

stddev([list()], float()) :: nil | float()

Calculates standard deviation of a given numeric list when mean is pre calculated and passed. Returns nil if list is empty.

Examples

iex> Indicado.Math.stddev([1, 2, 3, 4], 2.5)
1.118033988749895

iex> Indicado.Math.stddev([5, 10, 15, 20, 40], 18)
12.083045973594572

iex> Indicado.Math.stddev([])
nil