Class SynchronizedDescriptiveStatistics

java.lang.Object
org.apache.commons.math4.stat.descriptive.DescriptiveStatistics
org.apache.commons.math4.stat.descriptive.SynchronizedDescriptiveStatistics
All Implemented Interfaces:
java.io.Serializable, StatisticalSummary

public class SynchronizedDescriptiveStatistics
extends DescriptiveStatistics
Implementation of DescriptiveStatistics that is safe to use in a multithreaded environment. Multiple threads can safely operate on a single instance without causing runtime exceptions due to race conditions. In effect, this implementation makes modification and access methods atomic operations for a single instance. That is to say, as one thread is computing a statistic from the instance, no other thread can modify the instance nor compute another statistic.
Since:
1.2
See Also:
Serialized Form