|
||||||||||
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
public abstract class SummaryStatistics
Abstract factory class for univariate statistical summaries.
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(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(Class cls)
Create an instance of a SummaryStatistics |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SummaryStatistics()
Method Detail |
---|
public static SummaryStatistics newInstance(Class cls) throws InstantiationException, IllegalAccessException
SummaryStatistics
cls
- the type of SummaryStatistics
object to
create.
InstantiationException
- is thrown if the object can not be
created.
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(Object object)
object
is a SummaryStatistics
instance and all statistics have the same values as this.
equals
in class Object
object
- the object to test equality against.
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |