Class MeanCalculator

  • All Implemented Interfaces:
    Function<double[],​Double>

    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 Detail

      • MeanCalculator

        public MeanCalculator()