- Direct Known Subclasses:
public class SummaryStatisticsextends Objectimplements StatisticalSummary, Serializable
Computes summary statistics for a stream of data values added using the
addValuemethod. The data values are not stored in memory, so this class can be used to compute statistics for very large data streams.
StorelessUnivariateStatisticinstances used to maintain summary state and compute statistics are configurable via setters. For example, the default implementation for the variance can be overridden by calling
setVarianceImpl(StorelessUnivariateStatistic). Actual parameters to these methods must implement the
StorelessUnivariateStatisticinterface and configuration must be completed before
addValueis called. No configuration is necessary to use the default, commons-math provided implementations.
Note: This class is not thread-safe. Use
SynchronizedSummaryStatisticsif concurrent access from multiple threads is required.
- See Also:
- Serialized Form