public class Skewness extends Object implements Statistic
γ = E[((X - E(X)) / σ)3]This implementation uses Chan's update formula to incrementally compute the new statistic. The R equivalent function is
skewness.| Constructor and Description |
|---|
Skewness()
Construct an empty
Skewness calculator. |
Skewness(double[] data)
Construct a
Skewness calculator,
initialized with a sample. |
Skewness(Skewness that)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(double... data)
Recompute the statistic with more data, incrementally if possible.
|
double |
mean()
Get the sample mean.
|
long |
N()
Get the size of the sample.
|
double |
sample()
Get the sample skewness (biased estimator).
|
String |
toString() |
double |
value()
Get the value of the statistic.
|
double |
variance()
Get the (unbiased) variance.
|
public Skewness()
Skewness calculator.public Skewness(double[] data)
Skewness calculator,
initialized with a sample.data - a samplepublic Skewness(Skewness that)
that - a Skewness calculatorpublic double sample()
public double mean()
public double variance()
public void addData(double... data)
Statisticpublic double value()
Statisticpublic long N()
StatisticCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.