org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics 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.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | SynchronizedMultivariateSummaryStatistics(int
dimension of the data k, boolean if true, the unbiased sample
covariance is computed, otherwise the biased population covariance
is computed isCovarianceBiasCorrected)Construct a SynchronizedMultivariateSummaryStatistics instance |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serialization UID | |
| SynchronizedMultivariateSummaryStatistics | back to summary |
|---|---|
| public SynchronizedMultivariateSummaryStatistics(int k, boolean isCovarianceBiasCorrected) Construct a SynchronizedMultivariateSummaryStatistics instance
| |
| addValue | back to summary |
|---|---|
| public synchronized void addValue(double[] value) throws DimensionMismatchException Overrides org. Doc from org. Add an n-tuple to the data
| |
| clear | back to summary |
|---|---|
| public synchronized void clear() Overrides org. Doc from org. Resets all statistics and storage
| |
| equals | back to summary |
|---|---|
| public synchronized boolean equals(Object object) Overrides org. Doc from org. Returns true iff | |
| getCovariance | back to summary |
|---|---|
| public synchronized RealMatrix getCovariance() Overrides org. Implements org. Doc from org. Returns the covariance matrix of the values that have been added.
| |
| getDimension | back to summary |
|---|---|
| public synchronized int getDimension() Overrides org. Implements org. Doc from org. Returns the dimension of the data
| |
| getGeoMeanImpl | back to summary |
|---|---|
| public synchronized StorelessUnivariateStatistic[] getGeoMeanImpl() Overrides org. Doc from org. Returns the currently configured geometric mean implementation
| |
| getGeometricMean | back to summary |
|---|---|
| public synchronized double[] getGeometricMean() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the geometric mean of the
ith entries of the arrays that have been added using
| |
| getMax | back to summary |
|---|---|
| public synchronized double[] getMax() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the maximum of the
ith entries of the arrays that have been added using
| |
| getMaxImpl | back to summary |
|---|---|
| public synchronized StorelessUnivariateStatistic[] getMaxImpl() Overrides org. Doc from org. Returns the currently configured maximum implementation
| |
| getMean | back to summary |
|---|---|
| public synchronized double[] getMean() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the mean of the
ith entries of the arrays that have been added using
| |
| getMeanImpl | back to summary |
|---|---|
| public synchronized StorelessUnivariateStatistic[] getMeanImpl() Overrides org. Doc from org. Returns the currently configured mean implementation
| |
| getMin | back to summary |
|---|---|
| public synchronized double[] getMin() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the minimum of the
ith entries of the arrays that have been added using
| |
| getMinImpl | back to summary |
|---|---|
| public synchronized StorelessUnivariateStatistic[] getMinImpl() Overrides org. Doc from org. Returns the currently configured minimum implementation
| |
| getN | back to summary |
|---|---|
| public synchronized long getN() Overrides org. Implements org. Doc from org. Returns the number of available values
| |
| getStandardDeviation | back to summary |
|---|---|
| public synchronized double[] getStandardDeviation() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the standard deviation of the
ith entries of the arrays that have been added using
| |
| getSum | back to summary |
|---|---|
| public synchronized double[] getSum() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the sum of the
ith entries of the arrays that have been added using
| |
| getSumImpl | back to summary |
|---|---|
| public synchronized StorelessUnivariateStatistic[] getSumImpl() Overrides org. Doc from org. Returns the currently configured Sum implementation
| |
| getSumLog | back to summary |
|---|---|
| public synchronized double[] getSumLog() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the sum of logs of the
ith entries of the arrays that have been added using
| |
| getSumLogImpl | back to summary |
|---|---|
| public synchronized StorelessUnivariateStatistic[] getSumLogImpl() Overrides org. Doc from org. Returns the currently configured sum of logs implementation
| |
| getSumSq | back to summary |
|---|---|
| public synchronized double[] getSumSq() Overrides org. Implements org. Doc from org. Returns an array whose ith entry is the sum of squares of the
ith entries of the arrays that have been added using
| |
| getSumsqImpl | back to summary |
|---|---|
| public synchronized StorelessUnivariateStatistic[] getSumsqImpl() Overrides org. Doc from org. Returns the currently configured sum of squares implementation
| |
| hashCode | back to summary |
|---|---|
| public synchronized int hashCode() Overrides org. Doc from org. Returns hash code based on values of statistics
| |
| setGeoMeanImpl | back to summary |
|---|---|
| public synchronized void setGeoMeanImpl(StorelessUnivariateStatistic[] geoMeanImpl) throws DimensionMismatchException, MathIllegalStateException Overrides org. Doc from org. Sets the implementation for the geometric mean. This method must be activated before any data has been added - i.e.,
before
| |
| setMaxImpl | back to summary |
|---|---|
| public synchronized void setMaxImpl(StorelessUnivariateStatistic[] maxImpl) throws DimensionMismatchException, MathIllegalStateException Overrides org. Doc from org. Sets the implementation for the maximum. This method must be activated before any data has been added - i.e.,
before
| |
| setMeanImpl | back to summary |
|---|---|
| public synchronized void setMeanImpl(StorelessUnivariateStatistic[] meanImpl) throws DimensionMismatchException, MathIllegalStateException Overrides org. Doc from org. Sets the implementation for the mean. This method must be activated before any data has been added - i.e.,
before
| |
| setMinImpl | back to summary |
|---|---|
| public synchronized void setMinImpl(StorelessUnivariateStatistic[] minImpl) throws DimensionMismatchException, MathIllegalStateException Overrides org. Doc from org. Sets the implementation for the minimum. This method must be activated before any data has been added - i.e.,
before
| |
| setSumImpl | back to summary |
|---|---|
| public synchronized void setSumImpl(StorelessUnivariateStatistic[] sumImpl) throws DimensionMismatchException, MathIllegalStateException Overrides org. Doc from org. Sets the implementation for the Sum. This method must be activated before any data has been added - i.e.,
before
| |
| setSumLogImpl | back to summary |
|---|---|
| public synchronized void setSumLogImpl(StorelessUnivariateStatistic[] sumLogImpl) throws DimensionMismatchException, MathIllegalStateException Overrides org. Doc from org. Sets the implementation for the sum of logs. This method must be activated before any data has been added - i.e.,
before
| |
| setSumsqImpl | back to summary |
|---|---|
| public synchronized void setSumsqImpl(StorelessUnivariateStatistic[] sumsqImpl) throws DimensionMismatchException, MathIllegalStateException Overrides org. Doc from org. Sets the implementation for the sum of squares. This method must be activated before any data has been added - i.e.,
before
| |
| toString | back to summary |
|---|---|
| public synchronized String toString() Overrides org. Doc from org. Generates a text report displaying summary statistics from values that have been added. | |