Indicado.Math.mean
You're seeing just the function
mean
, go back to Indicado.Math module for more information.
Specs
Calculated mean of a given numeric list.
Returns nil
if list is empty.
Examples
iex> Indicado.Math.mean([1, 2, 3, 4])
2.5
iex> Indicado.Math.mean([3, 5, 0, 14])
5.5
iex> Indicado.Math.mean([])
nil