|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.filter.UnivariateStats
public abstract class UnivariateStats
Calculates univariate statistics for a variable.
Feed data to an instance of this object by repeatedly calling
acceptDatum(java.lang.Object)
and then call the various accessor methods to
get accumulated values.
Constructor Summary | |
---|---|
UnivariateStats()
|
Method Summary | |
---|---|
abstract void |
acceptDatum(Object value)
Submits a single value to the statistics accumulator. |
static UnivariateStats |
createStats(Class clazz)
Factory method to construct an instance of this class for accumulating particular types of values. |
abstract long |
getCount()
Returns the number of good (non-null) values accumulated. |
abstract Number |
getMaximum()
Returns the numeric maximum value submitted. |
abstract long |
getMaxPos()
Returns the sequence number of the maximum value submitted. |
abstract Number |
getMinimum()
Returns the numeric minimum value submitted. |
abstract long |
getMinPos()
Returns the sequence number of the minimum value submitted. |
abstract double |
getSum()
Returns the numeric sum of values accumulated. |
abstract double |
getSum2()
Returns the sum of squares of values accumulated. |
abstract double |
getSum3()
Returns the sum of cubes of values accumulated. |
abstract double |
getSum4()
Returns the sum of fourth powers of values accumulated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnivariateStats()
Method Detail |
---|
public abstract void acceptDatum(Object value)
value
- value objectpublic abstract long getCount()
public abstract double getSum()
public abstract double getSum2()
public abstract double getSum3()
public abstract double getSum4()
public abstract Number getMinimum()
public abstract Number getMaximum()
public abstract long getMinPos()
public abstract long getMaxPos()
public static UnivariateStats createStats(Class clazz)
clazz
- class of which all submitted values will be instances of
(if they're not null)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |