|
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.test.distribution.normality.ShapiroWilkDistribution
public class ShapiroWilkDistribution
Shapiro-Wilk distribution is the distribution of the Shapiro-Wilk statistics, which tests the null hypothesis that a sample comes from a normally distributed population.
This is an implementation of ALGORITHM AS R94. Although our implementation allows for sample size > 5000, its validity is not rigorously established.
| Field Summary | |
|---|---|
int |
n
the number of observations |
| Constructor Summary | |
|---|---|
ShapiroWilkDistribution(int n)
Construct a Shapiro-Wilk distribution. |
|
| Method Summary | |
|---|---|
double |
cdf(double W)
The cumulative distribution function. |
double |
density(double x)
Deprecated. Not supported yet. |
double |
entropy()
Deprecated. Not supported yet. |
double |
kurtosis()
Deprecated. Not supported yet. |
double |
mean()
Deprecated. Not supported yet. |
double |
median()
Deprecated. Not supported yet. |
double |
moment(double x)
Deprecated. Not supported yet. |
double |
quantile(double u)
Deprecated. Not supported yet. |
double |
skew()
Deprecated. Not supported yet. |
double |
variance()
Deprecated. Not supported yet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int n
| Constructor Detail |
|---|
public ShapiroWilkDistribution(int n)
n - the number of observations| Method Detail |
|---|
@Deprecated public double mean()
UnivariateDistribution
mean in interface UnivariateDistribution@Deprecated public double median()
UnivariateDistribution
median in interface UnivariateDistribution@Deprecated public double variance()
UnivariateDistribution
variance in interface UnivariateDistribution@Deprecated public double skew()
UnivariateDistribution
skew in interface UnivariateDistribution@Deprecated public double kurtosis()
UnivariateDistribution
kurtosis in interface UnivariateDistribution@Deprecated public double entropy()
UnivariateDistribution
entropy in interface UnivariateDistributionpublic double cdf(double W)
UnivariateDistribution
F(x) = Pr(X <= x)
cdf in interface UnivariateDistributionW - x
F(x) = Pr(X <= x)@Deprecated public double quantile(double u)
UnivariateDistribution
F-1(u) = x, such that
Pr(X <= x) = u
This may not always exist.
quantile in interface UnivariateDistributionu - u
F-1(u)@Deprecated public double density(double x)
UnivariateDistributionF.
It describes the density of probability at each point in the sample space.
f(x) = dF(X) / dx
This may not always exist. For the discrete cases, this is the probability mass function. It gives the probability that a discrete random variable is exactly equal to some value.
density in interface UnivariateDistributionx - x
F(x) = Pr(X <= x)@Deprecated public double moment(double x)
UnivariateDistribution
etX
This may not always exist.
moment in interface UnivariateDistributionx - x
E(exp(tX))
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||