44 template <
class Scalar>
56 template <
class Scalar>
62 return std::sqrt(x*y);
73 template <
class Scalar>
79 return (2*x*y)/(y + x);
Scalar geometricMean(Scalar x, Scalar y)
Computes the geometric average of two values.
Definition: Means.hpp:57
Scalar harmonicMean(Scalar x, Scalar y)
Computes the harmonic average of two values.
Definition: Means.hpp:74
Scalar arithmeticMean(Scalar x, Scalar y)
Computes the arithmetic average of two values.
Definition: Means.hpp:45