module Math::Mean

Direct including types

Defined in:

lib/math/mean.cr

Instance Method Summary

Instance Method Detail

def geometric_mean #

The geometric mean of the list. For [a, b], a/c = c/b; c**2 = a*b

TODO Handle big Float/Int


[View source]
def harmonic_mean #

The harmonic mean of the list.

TODO Handle big Float/Int


[View source]
def mean #

Standard arithmetic mean

TODO Handle big Float/Int


[View source]
def quadratic_mean #

The root square mean of the list.

TODO Handle big Float/Int


[View source]