|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.statistics.StatisticalMoments
public class StatisticalMoments
A data structure representing the central moments of a distribution including:
Field Summary | |
---|---|
protected double[] |
moments
Vector containing the points. |
Constructor Summary | |
---|---|
StatisticalMoments()
Default constructor methods: declare space for 5 moments. |
|
StatisticalMoments(int n)
General constructor methods. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] moments
Constructor Detail |
---|
public StatisticalMoments()
public StatisticalMoments(int n)
n
- number of moments to accumulate.Method Detail |
---|
public void accumulate(double x)
x
- double value to accumulatepublic double average()
public long count()
public double errorOnAverage()
public double kurtosis() throws ArithmeticException
ArithmeticException
public void reset()
public double skewness() throws ArithmeticException
ArithmeticException
public double standardDeviation()
public double unnormalizedVariance()
public double variance() throws ArithmeticException
ArithmeticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |