Class SumOfSquares

  • All Implemented Interfaces:
    java.io.Serializable, StorelessUnivariateStatistic, UnivariateStatistic

    public class SumOfSquares
    extends AbstractStorelessUnivariateStatistic
    implements java.io.Serializable
    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.

    Version:
    $Revision: 1006299 $ $Date: 2010-10-10 16:47:17 +0200 (dim. 10 oct. 2010) $
    See Also:
    Serialized Form