Class SumOfSquares

  • All Implemented Interfaces:, StorelessUnivariateStatistic, UnivariateStatistic

    public class SumOfSquares
    extends AbstractStorelessUnivariateStatistic
    Returns the sum of the squares of the available values.

    If there are no values in the dataset, or any of the values are NaN, then NaN is returned.

    Note that this implementation is not synchronized. If multiple threads access an instance of this class concurrently, and at least one of the threads invokes the increment() or clear() method, it must be synchronized externally.

    See Also:
    Serialized Form