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

public Class SynchronizedMultivariateSummaryStatistics

extends MultivariateSummaryStatistics
Class Inheritance
Imports
org.apache.commons.math3.exception.DimensionMismatchException, .MathIllegalStateException, org.apache.commons.math3.linear.RealMatrix

Implementation of 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.
Since
1.2

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor 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

Method Summary

Modifier and TypeMethod and Description
public synchronized void
addValue(double[]
the n-tuple to add
value
)

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

Add an n-tuple to the data

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

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

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

public synchronized RealMatrix
public synchronized int
public synchronized StorelessUnivariateStatistic[]
getGeoMeanImpl()

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

Returns the currently configured geometric mean implementation

public synchronized double[]
getGeometricMean()

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

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getGeometricMean.

Returns an array whose ith entry is the geometric mean of the ith entries of the arrays that have been added using addValue(double[])

public synchronized double[]
getMax()

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

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

Returns an array whose ith entry is the maximum of the ith entries of the arrays that have been added using addValue(double[])

public synchronized StorelessUnivariateStatistic[]
getMaxImpl()

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

Returns the currently configured maximum implementation

public synchronized double[]
getMean()

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

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

Returns an array whose ith entry is the mean of the ith entries of the arrays that have been added using addValue(double[])

public synchronized StorelessUnivariateStatistic[]
getMeanImpl()

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

Returns the currently configured mean implementation

public synchronized double[]
getMin()

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

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

Returns an array whose ith entry is the minimum of the ith entries of the arrays that have been added using addValue(double[])

public synchronized StorelessUnivariateStatistic[]
getMinImpl()

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

Returns the currently configured minimum implementation

public synchronized long
public synchronized double[]
public synchronized double[]
getSum()

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

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

Returns an array whose ith entry is the sum of the ith entries of the arrays that have been added using addValue(double[])

public synchronized StorelessUnivariateStatistic[]
getSumImpl()

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

Returns the currently configured Sum implementation

public synchronized double[]
getSumLog()

Overrides org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getSumLog.

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getSumLog.

Returns an array whose ith entry is the sum of logs of the ith entries of the arrays that have been added using addValue(double[])

public synchronized StorelessUnivariateStatistic[]
getSumLogImpl()

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

Returns the currently configured sum of logs implementation

public synchronized double[]
getSumSq()

Overrides org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getSumSq.

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getSumSq.

Returns an array whose ith entry is the sum of squares of the ith entries of the arrays that have been added using addValue(double[])

public synchronized StorelessUnivariateStatistic[]
getSumsqImpl()

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

Returns the currently configured sum of squares implementation

public synchronized int
hashCode()

Overrides org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.setSumsqImpl.

Sets the implementation for the sum of squares.

public synchronized String
toString()

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

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

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

Serialization UID

Constructor Detail

SynchronizedMultivariateSummaryStatisticsback to summary
public SynchronizedMultivariateSummaryStatistics(int k, boolean isCovarianceBiasCorrected)

Construct a SynchronizedMultivariateSummaryStatistics instance

Parameters
k:int

dimension of the data

isCovarianceBiasCorrected:boolean

if true, the unbiased sample covariance is computed, otherwise the biased population covariance is computed

Method Detail

addValueback to summary
public synchronized void addValue(double[] value) throws DimensionMismatchException

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

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

Add an n-tuple to the data

Parameters
value:double[]

the n-tuple to add

Annotations
@Override
Exceptions
DimensionMismatchException:
if the length of the array does not match the one used at construction
clearback to summary
public synchronized void clear()

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

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

Resets all statistics and storage

Annotations
@Override
equalsback to summary
public synchronized boolean equals(Object object)

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

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

Returns true iff object is a MultivariateSummaryStatistics 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
getCovarianceback to summary
public synchronized RealMatrix getCovariance()

Overrides org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getCovariance.

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getCovariance.

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getCovariance.

Returns the covariance matrix of the values that have been added.

Returns:RealMatrix

the covariance matrix

Annotations
@Override
getDimensionback to summary
public synchronized int getDimension()

Overrides org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getDimension.

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getDimension.

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getDimension.

Returns the dimension of the data

Returns:int

The dimension of the data

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

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

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.getGeometricMean.

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getGeometricMean.

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

Returns an array whose ith entry is the geometric mean of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component geometric means

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

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

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

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

Returns an array whose ith entry is the maximum of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component maxima

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

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

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.getMean.

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

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

Returns an array whose ith entry is the mean of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component means

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

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

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.getMin.

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

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

Returns an array whose ith entry is the minimum of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component minima

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

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

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.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.MultivariateSummaryStatistics.getN.

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

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

Returns the number of available values

Returns:long

The number of available values

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

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

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

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

Returns an array whose ith entry is the standard deviation of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component standard deviations

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

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

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

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

Returns an array whose ith entry is the sum of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component sums

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

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

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

Returns the currently configured Sum implementation

Returns:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic implementing the sum

Annotations
@Override
getSumLogback to summary
public synchronized double[] getSumLog()

Overrides org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getSumLog.

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getSumLog.

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getSumLog.

Returns an array whose ith entry is the sum of logs of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component log sums

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

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

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

Returns the currently configured sum of logs implementation

Returns:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic implementing the log sum

Annotations
@Override
getSumSqback to summary
public synchronized double[] getSumSq()

Overrides org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getSumSq.

Implements org.apache.commons.math3.stat.descriptive.StatisticalMultivariateSummary.getSumSq.

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.getSumSq.

Returns an array whose ith entry is the sum of squares of the ith entries of the arrays that have been added using addValue(double[])

Returns:double[]

the array of component sums of squares

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

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

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

Returns the currently configured sum of squares implementation

Returns:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic implementing the sum of squares

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

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

Doc from org.apache.commons.math3.stat.descriptive.MultivariateSummaryStatistics.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 DimensionMismatchException, MathIllegalStateException

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

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

Sets the implementation for the geometric mean.

This method must be activated before any data has been added - i.e., before addValue has been used to add data; otherwise an IllegalStateException will be thrown.

Parameters
geoMeanImpl:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic instance to use for computing the geometric mean

Annotations
@Override
Exceptions
DimensionMismatchException:
if the array dimension does not match the one used at construction
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setMaxImplback to summary
public synchronized void setMaxImpl(StorelessUnivariateStatistic[] maxImpl) throws DimensionMismatchException, MathIllegalStateException

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

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

Sets the implementation for the maximum.

This method must be activated before any data has been added - i.e., before addValue has been used to add data; otherwise an IllegalStateException will be thrown.

Parameters
maxImpl:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic instance to use for computing the maximum

Annotations
@Override
Exceptions
DimensionMismatchException:
if the array dimension does not match the one used at construction
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setMeanImplback to summary
public synchronized void setMeanImpl(StorelessUnivariateStatistic[] meanImpl) throws DimensionMismatchException, MathIllegalStateException

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

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

Sets the implementation for the mean.

This method must be activated before any data has been added - i.e., before addValue has been used to add data; otherwise an IllegalStateException will be thrown.

Parameters
meanImpl:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic instance to use for computing the mean

Annotations
@Override
Exceptions
DimensionMismatchException:
if the array dimension does not match the one used at construction
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setMinImplback to summary
public synchronized void setMinImpl(StorelessUnivariateStatistic[] minImpl) throws DimensionMismatchException, MathIllegalStateException

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

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

Sets the implementation for the minimum.

This method must be activated before any data has been added - i.e., before addValue has been used to add data; otherwise an IllegalStateException will be thrown.

Parameters
minImpl:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic instance to use for computing the minimum

Annotations
@Override
Exceptions
DimensionMismatchException:
if the array dimension does not match the one used at construction
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setSumImplback to summary
public synchronized void setSumImpl(StorelessUnivariateStatistic[] sumImpl) throws DimensionMismatchException, MathIllegalStateException

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

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

Sets the implementation for the Sum.

This method must be activated before any data has been added - i.e., before addValue has been used to add data; otherwise an IllegalStateException will be thrown.

Parameters
sumImpl:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic instance to use for computing the Sum

Annotations
@Override
Exceptions
DimensionMismatchException:
if the array dimension does not match the one used at construction
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setSumLogImplback to summary
public synchronized void setSumLogImpl(StorelessUnivariateStatistic[] sumLogImpl) throws DimensionMismatchException, MathIllegalStateException

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

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

Sets the implementation for the sum of logs.

This method must be activated before any data has been added - i.e., before addValue has been used to add data; otherwise an IllegalStateException will be thrown.

Parameters
sumLogImpl:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic instance to use for computing the log sum

Annotations
@Override
Exceptions
DimensionMismatchException:
if the array dimension does not match the one used at construction
MathIllegalStateException:
if data has already been added (i.e if n > 0)
setSumsqImplback to summary
public synchronized void setSumsqImpl(StorelessUnivariateStatistic[] sumsqImpl) throws DimensionMismatchException, MathIllegalStateException

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

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

Sets the implementation for the sum of squares.

This method must be activated before any data has been added - i.e., before addValue has been used to add data; otherwise an IllegalStateException will be thrown.

Parameters
sumsqImpl:StorelessUnivariateStatistic[]

the StorelessUnivariateStatistic instance to use for computing the sum of squares

Annotations
@Override
Exceptions
DimensionMismatchException:
if the array dimension does not match the one used at construction
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.MultivariateSummaryStatistics.toString.

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

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

Returns:String

String with line feeds displaying statistics

Annotations
@Override