|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.stat.descriptive.SummaryStatistics
Abstract factory class for univariate statistical summaries.
Field Summary | |
(package private) static long |
serialVersionUID
Serialization UID |
Constructor Summary | |
SummaryStatistics()
|
Method Summary | |
abstract void |
addValue(double v)
Adds the value to the data to be summarized |
abstract void |
clear()
Resets all statistics |
boolean |
equals(java.lang.Object object)
Returns true iff object is a SummaryStatistics
instance and all statistics have the same values as this. |
abstract double |
getGeometricMean()
Returns the geometric mean of the available values |
abstract double |
getMax()
Returns the maximum of the available values |
abstract double |
getMean()
Returns the arithmetic mean of the available values |
abstract double |
getMin()
Returns the minimum of the available values |
abstract long |
getN()
Returns the number of available values |
abstract double |
getStandardDeviation()
Returns the standard deviation of the available values. |
abstract double |
getSum()
Returns the sum of the values that have been added to Univariate. |
StatisticalSummary |
getSummary()
Return a StatisticalSummaryValues instance reporting current
statistics. |
abstract double |
getSumsq()
Returns the sum of the squares of the available values. |
abstract double |
getVariance()
Returns the variance of the available values. |
int |
hashCode()
Returns hash code based on values of statistics |
static SummaryStatistics |
newInstance()
Create an instance of a SummaryStatistics |
static SummaryStatistics |
newInstance(java.lang.Class cls)
Create an instance of a SummaryStatistics |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final long serialVersionUID
Constructor Detail |
public SummaryStatistics()
Method Detail |
public static SummaryStatistics newInstance(java.lang.Class cls) throws java.lang.InstantiationException, java.lang.IllegalAccessException
SummaryStatistics
cls
- the type of SummaryStatistics
object to
create.
java.lang.InstantiationException
- is thrown if the object can not be
created.
java.lang.IllegalAccessException
- is thrown if the type's default
constructor is not accessible.public static SummaryStatistics newInstance()
SummaryStatistics
public StatisticalSummary getSummary()
StatisticalSummaryValues
instance reporting current
statistics.
public abstract void addValue(double v)
v
- the value to be addedpublic abstract double getMean()
getMean
in interface StatisticalSummary
public abstract double getGeometricMean()
public abstract double getVariance()
getVariance
in interface StatisticalSummary
public abstract double getStandardDeviation()
getStandardDeviation
in interface StatisticalSummary
public abstract double getMax()
getMax
in interface StatisticalSummary
public abstract double getMin()
getMin
in interface StatisticalSummary
public abstract long getN()
getN
in interface StatisticalSummary
public abstract double getSum()
getSum
in interface StatisticalSummary
public abstract double getSumsq()
public abstract void clear()
public boolean equals(java.lang.Object object)
object
is a SummaryStatistics
instance and all statistics have the same values as this.
object
- the object to test equality against.
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |