@Reference(authors="T. B. Terriberry", title="Computing Higher-Order Moments Online", booktitle="Online - Technical Note", url="http://people.xiph.org/~tterribe/notes/homs.html") public class StatisticalMoments extends MeanVarianceMinMax
T. B. Terriberry
Computing Higher-Order Moments Online
http://people.xiph.org/~tterribe/notes/homs.html
Philippe Pébay
Formulas for Robust, One-Pass Parallel Computation of Covariances and
Arbitrary-Order Statistical Moments
Sandia Report SAND2008-6212, Sandia National Laboratories
Modifier and Type | Field and Description |
---|---|
(package private) double |
m3
Third moment.
|
(package private) double |
m4
Fourth moment.
|
max, min
m2
Constructor and Description |
---|
StatisticalMoments()
Empty constructor
|
StatisticalMoments(StatisticalMoments other)
Constructor from other instance
|
Modifier and Type | Method and Description |
---|---|
double |
getNaiveExcessKurtosis()
Get the kurtosis using naive variance.
|
double |
getNaiveKurtosis()
Get the kurtosis using naive variance.
|
double |
getNaiveSkewness()
Get the skewness using naive variance.
|
double |
getSampleExcessKurtosis()
Get the kurtosis using sample variance.
|
double |
getSampleKurtosis()
Get the kurtosis using sample variance.
|
double |
getSampleSkewness()
Get the skewness using sample variance.
|
static StatisticalMoments[] |
newArray(int dimensionality)
Create and initialize a new array of MeanVariance
|
void |
put(double val)
Add a single value with weight 1.0
|
void |
put(double val,
double weight)
Add data with a given weight.
|
void |
put(Mean other)
Join the data of another MeanVariance instance.
|
void |
reset()
Reset the value.
|
String |
toString() |
getDiff, getDoubleMinMax, getMax, getMin, put, put
denormalizeValue, getCount, getMean, getNaiveStddev, getNaiveVariance, getSampleStddev, getSampleVariance, normalizeValue
public StatisticalMoments()
public StatisticalMoments(StatisticalMoments other)
other
- other instance to copy data from.public void put(double val)
put
in class MeanVarianceMinMax
val
- Valuepublic void put(double val, double weight)
put
in class MeanVarianceMinMax
val
- dataweight
- weightpublic void put(Mean other)
put
in class MeanVarianceMinMax
other
- Data to join withpublic double getSampleSkewness()
public double getNaiveSkewness()
public double getSampleKurtosis()
public double getNaiveKurtosis()
public double getSampleExcessKurtosis()
public double getNaiveExcessKurtosis()
public static StatisticalMoments[] newArray(int dimensionality)
dimensionality
- Dimensionalitypublic String toString()
toString
in class MeanVarianceMinMax
public void reset()
Mean
reset
in class MeanVarianceMinMax
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.