Class PopulationVarianceCalculator

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

    public class PopulationVarianceCalculator
    extends Object
    implements Function<double[],​Double>
    Calculates the population variance of a series of data.

    The unbiased population variance $\mathrm{var}$ of a series $x_1, x_2, \dots, x_n$ is given by: $$ \begin{align*} \text{var} = \frac{1}{n}\sum_{i=1}^{n}(x_i - \overline{x})^2 \end{align*} $$ where $\overline{x}$ is the sample mean. For the sample variance, see SampleVarianceCalculator.

    • Constructor Detail

      • PopulationVarianceCalculator

        public PopulationVarianceCalculator()