Class SumOfSquares

All Implemented Interfaces:
Serializable, DoubleConsumer, AggregatableStatistic<SumOfSquares>, StorelessUnivariateStatistic, UnivariateStatistic, MathArrays.Function

Returns the sum of the squares of the available values.

If there are no values in the dataset, then 0 is returned. If 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: