|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.descriptive.moment.Kurtosis
public class Kurtosis
This defines the excess kurtosis.
Kurtosis measures the "peakedness" of the probability distribution of a real-valued random variable. Higher kurtosis means that there are more infrequent extreme deviations than frequent modestly sized deviations, hence a fatter tail.
γ = E[((X - E(X)) / σ)4]
This implementation uses Chan's update formula to incrementally compute the new statistic.
The R equivalent function is kurtosis.
| Constructor Summary | |
|---|---|
Kurtosis()
Construct an empty Kurtosis calculator. |
|
Kurtosis(double[] data)
Construct a Kurtosis calculator, initialized with a sample. |
|
Kurtosis(Kurtosis that)
Copy constructor. |
|
| Method Summary | |
|---|---|
void |
addData(double... data)
Recompute the statistic, incrementally if possible. |
long |
N()
Get the size of the sample. |
double |
sample()
Get the sample kurtosis (biased estimator). |
java.lang.String |
toString()
|
double |
value()
Get the value of the statistic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Kurtosis()
public Kurtosis(double[] data)
data - a samplepublic Kurtosis(Kurtosis that)
that - another Kurtosis object| Method Detail |
|---|
public void addData(double... data)
Statistic
addData in interface Statisticdata - an array of new itemspublic double value()
Statistic
value in interface Statisticpublic double sample()
public long N()
Statistic
N in interface Statisticpublic java.lang.String toString()
toString in class java.lang.Object
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||