Class GeometricMeanCalculator
- java.lang.Object
-
- com.opengamma.strata.math.impl.statistics.descriptive.GeometricMeanCalculator
-
public class GeometricMeanCalculator extends Object implements Function<double[],Double>
Calculates the geometric mean of a series of data.The geometric mean $\mu$ of a series of elements $x_1, x_2, \dots, x_n$ is given by: $$ \begin{align*} \mu = \left({\prod\limits_{i=1}^n x_i}\right)^{\frac{1}{n}} \end{align*} $$
-
-
Constructor Summary
Constructors Constructor Description GeometricMeanCalculator()
-