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