public class StatisticalMoments
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double[] |
moments
Vector containing the points.
|
Constructor and Description |
---|
StatisticalMoments()
Default constructor methods: declare space for 5 moments.
|
StatisticalMoments(int n)
General constructor methods.
|
Modifier and Type | Method and Description |
---|---|
void |
accumulate(double x)
statistical moment accumulation up to order 4.
|
double |
average() |
long |
count()
Returns the number of accumulated counts.
|
double |
errorOnAverage()
Returns the error on average.
|
double |
kurtosis()
The kurtosis measures the sharpness of the distribution near
the maximum.
|
void |
reset()
Reset all counters.
|
double |
skewness() |
double |
standardDeviation()
Returns the standard deviation.
|
double |
unnormalizedVariance() |
double |
variance()
Note: the variance includes the Bessel correction factor.
|
public StatisticalMoments()
public StatisticalMoments(int n)
n
- number of moments to accumulate.public void accumulate(double x)
x
- double value to accumulatepublic double average()
public long count()
public double errorOnAverage()
public double kurtosis() throws java.lang.ArithmeticException
java.lang.ArithmeticException
public void reset()
public double skewness() throws java.lang.ArithmeticException
java.lang.ArithmeticException
public double standardDeviation()
public double unnormalizedVariance()
public double variance() throws java.lang.ArithmeticException
java.lang.ArithmeticException