public abstract class UnivariateStats
extends java.lang.Object
acceptDatum(java.lang.Object)
and then call the various accessor methods to
get accumulated values.Constructor | Description |
---|---|
UnivariateStats() |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
acceptDatum(java.lang.Object value) |
Submits a single value to the statistics accumulator.
|
static UnivariateStats |
createStats(java.lang.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 java.lang.Number |
getMaximum() |
Returns the numeric maximum value submitted.
|
abstract long |
getMaxPos() |
Returns the sequence number of the maximum value submitted.
|
abstract java.lang.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.
|
public abstract void acceptDatum(java.lang.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 java.lang.Number getMinimum()
public abstract java.lang.Number getMaximum()
public abstract long getMinPos()
public abstract long getMaxPos()
public static UnivariateStats createStats(java.lang.Class clazz)
clazz
- class of which all submitted values will be instances of
(if they're not null)Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.