Top Description Fields Constructors Methods
org.apache.commons.math3.stat.descriptive

public Class SynchronizedSummaryStatistics

extends SummaryStatistics
Class Inheritance
Imports
org.apache.commons.math3.exception.MathIllegalStateException, .NullArgumentException, org.apache.commons.math3.util.MathUtils

Implementation of org.apache.commons.math3.stat.descriptive.SummaryStatistics 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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
SynchronizedSummaryStatistics()

Construct a SynchronizedSummaryStatistics instance

public
SynchronizedSummaryStatistics(SynchronizedSummaryStatistics
the SynchronizedSummaryStatistics instance to copy
original
)

A copy constructor.

Method Summary

Modifier and TypeMethod and Description
public synchronized void
addValue(double
the value to add
value
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.addValue.

Add a value to the data

public synchronized void
clear()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.clear.

Resets all statistics and storage

public synchronized SynchronizedSummaryStatistics

Returns:

a copy of this
copy
()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.copy.

Returns a copy of this SynchronizedSummaryStatistics instance with the same internal state.

public static void
copy(SynchronizedSummaryStatistics
SynchronizedSummaryStatistics to copy
source
,
SynchronizedSummaryStatistics
SynchronizedSummaryStatistics to copy to
dest
)

Copies source to dest.

public synchronized boolean
equals(Object
the object to test equality against.
object
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.equals.

Returns true iff object is a SummaryStatistics instance and all statistics have the same values as this.

public synchronized StorelessUnivariateStatistic
getGeoMeanImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getGeoMeanImpl.

Returns the currently configured geometric mean implementation

public synchronized double
getGeometricMean()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getGeometricMean.

Returns the geometric mean of the values that have been added.

public synchronized double
public synchronized StorelessUnivariateStatistic
getMaxImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMaxImpl.

Returns the currently configured maximum implementation

public synchronized double
public synchronized StorelessUnivariateStatistic
getMeanImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMeanImpl.

Returns the currently configured mean implementation

public synchronized double
public synchronized StorelessUnivariateStatistic
getMinImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMinImpl.

Returns the currently configured minimum implementation

public synchronized long
public synchronized double
public synchronized double
getQuadraticMean()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getQuadraticMean.

Returns the quadratic mean, a.k.a. root-mean-square of the available values

public synchronized double
public synchronized double
public synchronized StorelessUnivariateStatistic
getSumImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumImpl.

Returns the currently configured Sum implementation

public synchronized StorelessUnivariateStatistic
getSumLogImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumLogImpl.

Returns the currently configured sum of logs implementation

public synchronized StatisticalSummary
public synchronized double
getSumsq()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumsq.

Returns the sum of the squares of the values that have been added.

public synchronized StorelessUnivariateStatistic
getSumsqImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumsqImpl.

Returns the currently configured sum of squares implementation

public synchronized double
public synchronized StorelessUnivariateStatistic
getVarianceImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getVarianceImpl.

Returns the currently configured variance implementation

public synchronized int
hashCode()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.hashCode.

Returns hash code based on values of statistics

public synchronized void
setGeoMeanImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the geometric mean
geoMeanImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setGeoMeanImpl.

Sets the implementation for the geometric mean.

public synchronized void
setMaxImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the maximum
maxImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMaxImpl.

Sets the implementation for the maximum.

public synchronized void
setMeanImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the mean
meanImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMeanImpl.

Sets the implementation for the mean.

public synchronized void
setMinImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the minimum
minImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMinImpl.

Sets the implementation for the minimum.

public synchronized void
setSumImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the Sum
sumImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumImpl.

Sets the implementation for the Sum.

public synchronized void
setSumLogImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the log sum
sumLogImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumLogImpl.

Sets the implementation for the sum of logs.

public synchronized void
setSumsqImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the sum of squares
sumsqImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumsqImpl.

Sets the implementation for the sum of squares.

public synchronized void
setVarianceImpl(StorelessUnivariateStatistic
the StorelessUnivariateStatistic instance to use for computing the variance
varianceImpl
)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setVarianceImpl.

Sets the implementation for the variance.

public synchronized String
toString()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.toString.

Generates a text report displaying summary statistics from values that have been added.

Inherited from org.apache.commons.math3.stat.descriptive.SummaryStatistics:
copygetSecondMomentgetSumOfLogs

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.commons.math3.stat.descriptive.SummaryStatistics.serialVersionUID.

Serialization UID

Constructor Detail

SynchronizedSummaryStatisticsback to summary
public SynchronizedSummaryStatistics()

Construct a SynchronizedSummaryStatistics instance

SynchronizedSummaryStatisticsback to summary
public SynchronizedSummaryStatistics(SynchronizedSummaryStatistics original) throws NullArgumentException

A copy constructor. Creates a deep-copy of the original.

Parameters
original:SynchronizedSummaryStatistics

the SynchronizedSummaryStatistics instance to copy

Exceptions
NullArgumentException:
if original is null

Method Detail

addValueback to summary
public synchronized void addValue(double value)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.addValue.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.addValue.

Add a value to the data

Parameters
value:double

the value to add

Annotations
@Override
clearback to summary
public synchronized void clear()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.clear.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.clear.

Resets all statistics and storage

Annotations
@Override
copyback to summary
public synchronized SynchronizedSummaryStatistics copy()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.copy.

Returns a copy of this SynchronizedSummaryStatistics instance with the same internal state.

Returns:SynchronizedSummaryStatistics

a copy of this

Annotations
@Override
copyback to summary
public static void copy(SynchronizedSummaryStatistics source, SynchronizedSummaryStatistics dest) throws NullArgumentException

Copies source to dest.

Neither source nor dest can be null.

Acquires synchronization lock on source, then dest before copying.

Parameters
source:SynchronizedSummaryStatistics

SynchronizedSummaryStatistics to copy

dest:SynchronizedSummaryStatistics

SynchronizedSummaryStatistics to copy to

Exceptions
NullArgumentException:
if either source or dest is null
equalsback to summary
public synchronized boolean equals(Object object)

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.equals.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.equals.

Returns true iff object is a SummaryStatistics instance and all statistics have the same values as this.

Parameters
object:Object

the object to test equality against.

Returns:boolean

true if object equals this

Annotations
@Override
getGeoMeanImplback to summary
public synchronized StorelessUnivariateStatistic getGeoMeanImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getGeoMeanImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getGeoMeanImpl.

Returns the currently configured geometric mean implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the geometric mean

Annotations
@Override
getGeometricMeanback to summary
public synchronized double getGeometricMean()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getGeometricMean.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getGeometricMean.

Returns the geometric mean of the values that have been added.

Double.NaN is returned if no values have been added.

Returns:double

the geometric mean

Annotations
@Override
getMaxback to summary
public synchronized double getMax()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMax.

Implements org.apache.commons.math3.stat.descriptive.StatisticalSummary.getMax.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMax.

Returns the maximum of the values that have been added.

Double.NaN is returned if no values have been added.

Returns:double

the maximum

Annotations
@Override
getMaxImplback to summary
public synchronized StorelessUnivariateStatistic getMaxImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMaxImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMaxImpl.

Returns the currently configured maximum implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the maximum

Annotations
@Override
getMeanback to summary
public synchronized double getMean()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMean.

Implements org.apache.commons.math3.stat.descriptive.StatisticalSummary.getMean.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMean.

Returns the mean of the values that have been added.

Double.NaN is returned if no values have been added.

Returns:double

the mean

Annotations
@Override
getMeanImplback to summary
public synchronized StorelessUnivariateStatistic getMeanImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMeanImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMeanImpl.

Returns the currently configured mean implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the mean

Annotations
@Override
getMinback to summary
public synchronized double getMin()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMin.

Implements org.apache.commons.math3.stat.descriptive.StatisticalSummary.getMin.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMin.

Returns the minimum of the values that have been added.

Double.NaN is returned if no values have been added.

Returns:double

the minimum

Annotations
@Override
getMinImplback to summary
public synchronized StorelessUnivariateStatistic getMinImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMinImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getMinImpl.

Returns the currently configured minimum implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the minimum

Annotations
@Override
getNback to summary
public synchronized long getN()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getN.

Implements org.apache.commons.math3.stat.descriptive.StatisticalSummary.getN.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getN.

Returns the number of available values

Returns:long

The number of available values

Annotations
@Override
getPopulationVarianceback to summary
public synchronized double getPopulationVariance()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getPopulationVariance.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getPopulationVariance.

Returns the population variance of the values that have been added.

Double.NaN is returned if no values have been added.

Returns:double

the population variance

Annotations
@Override
getQuadraticMeanback to summary
public synchronized double getQuadraticMean()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getQuadraticMean.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getQuadraticMean.

Returns the quadratic mean, a.k.a. root-mean-square of the available values

Returns:double

The quadratic mean or Double.NaN if no values have been added.

Annotations
@Override
getStandardDeviationback to summary
public synchronized double getStandardDeviation()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getStandardDeviation.

Implements org.apache.commons.math3.stat.descriptive.StatisticalSummary.getStandardDeviation.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getStandardDeviation.

Returns the standard deviation of the values that have been added.

Double.NaN is returned if no values have been added.

Returns:double

the standard deviation

Annotations
@Override
getSumback to summary
public synchronized double getSum()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSum.

Implements org.apache.commons.math3.stat.descriptive.StatisticalSummary.getSum.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSum.

Returns the sum of the values that have been added

Returns:double

The sum or Double.NaN if no values have been added

Annotations
@Override
getSumImplback to summary
public synchronized StorelessUnivariateStatistic getSumImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumImpl.

Returns the currently configured Sum implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the sum

Annotations
@Override
getSumLogImplback to summary
public synchronized StorelessUnivariateStatistic getSumLogImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumLogImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumLogImpl.

Returns the currently configured sum of logs implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the log sum

Annotations
@Override
getSummaryback to summary
public synchronized StatisticalSummary getSummary()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSummary.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSummary.

Return a StatisticalSummaryValues instance reporting current statistics.

Returns:StatisticalSummary

Current values of statistics

Annotations
@Override
getSumsqback to summary
public synchronized double getSumsq()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumsq.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumsq.

Returns the sum of the squares of the values that have been added.

Double.NaN is returned if no values have been added.

Returns:double

The sum of squares

Annotations
@Override
getSumsqImplback to summary
public synchronized StorelessUnivariateStatistic getSumsqImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumsqImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getSumsqImpl.

Returns the currently configured sum of squares implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the sum of squares

Annotations
@Override
getVarianceback to summary
public synchronized double getVariance()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getVariance.

Implements org.apache.commons.math3.stat.descriptive.StatisticalSummary.getVariance.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getVariance.

Returns the (sample) variance of the available values.

This method returns the bias-corrected sample variance (using n - 1 in the denominator). Use getPopulationVariance() for the non-bias-corrected population variance.

Double.NaN is returned if no values have been added.

Returns:double

the variance

Annotations
@Override
getVarianceImplback to summary
public synchronized StorelessUnivariateStatistic getVarianceImpl()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.getVarianceImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.getVarianceImpl.

Returns the currently configured variance implementation

Returns:StorelessUnivariateStatistic

the StorelessUnivariateStatistic implementing the variance

Annotations
@Override
hashCodeback to summary
public synchronized int hashCode()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.hashCode.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.hashCode.

Returns hash code based on values of statistics

Returns:int

hash code

Annotations
@Override
setGeoMeanImplback to summary
public synchronized void setGeoMeanImpl(StorelessUnivariateStatistic geoMeanImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setGeoMeanImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setGeoMeanImpl.

Sets the implementation for the geometric mean.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
geoMeanImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the geometric mean

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setMaxImplback to summary
public synchronized void setMaxImpl(StorelessUnivariateStatistic maxImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMaxImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMaxImpl.

Sets the implementation for the maximum.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
maxImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the maximum

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setMeanImplback to summary
public synchronized void setMeanImpl(StorelessUnivariateStatistic meanImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMeanImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMeanImpl.

Sets the implementation for the mean.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
meanImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the mean

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setMinImplback to summary
public synchronized void setMinImpl(StorelessUnivariateStatistic minImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMinImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setMinImpl.

Sets the implementation for the minimum.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
minImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the minimum

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setSumImplback to summary
public synchronized void setSumImpl(StorelessUnivariateStatistic sumImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumImpl.

Sets the implementation for the Sum.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
sumImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the Sum

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n >0)
setSumLogImplback to summary
public synchronized void setSumLogImpl(StorelessUnivariateStatistic sumLogImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumLogImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumLogImpl.

Sets the implementation for the sum of logs.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
sumLogImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the log sum

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setSumsqImplback to summary
public synchronized void setSumsqImpl(StorelessUnivariateStatistic sumsqImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumsqImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setSumsqImpl.

Sets the implementation for the sum of squares.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
sumsqImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the sum of squares

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setVarianceImplback to summary
public synchronized void setVarianceImpl(StorelessUnivariateStatistic varianceImpl) throws MathIllegalStateException

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.setVarianceImpl.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.setVarianceImpl.

Sets the implementation for the variance.

This method cannot be activated after data has been added - i.e., after addValue has been used to add data. If it is activated after data has been added, an IllegalStateException will be thrown.

Parameters
varianceImpl:StorelessUnivariateStatistic

the StorelessUnivariateStatistic instance to use for computing the variance

Annotations
@Override
Exceptions
MathIllegalStateException:
if data has already been added (i.e if n > 0)
toStringback to summary
public synchronized String toString()

Overrides org.apache.commons.math3.stat.descriptive.SummaryStatistics.toString.

Doc from org.apache.commons.math3.stat.descriptive.SummaryStatistics.toString.

Generates a text report displaying summary statistics from values that have been added.

Returns:String

String with line feeds displaying statistics

Annotations
@Override