|
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.kolmogorov.KolmogorovTwoSamplesDistribution
public class KolmogorovTwoSamplesDistribution
Compute the p-values for the generalized (conditionally distribution-free) Smirnov homogeneity test.
That is,
P(Dm,n ≥ c | H0) = 1 - P(Dm,n < c | H0) = 1 - cdf(c)
, where
Dm,n max |Sm(x) - Sn(x)|
| Nested Class Summary | |
|---|---|
static class |
KolmogorovTwoSamplesDistribution.Side
the types of KolmogorovDistribution two-sample test available |
| Field Summary | |
|---|---|
int |
bigN
the big N for which n > bigN we use the asymptotic distribution |
int |
n
the total number of observations of the two samples |
int |
n1
the number of observations of the first sample |
int |
n2
the number of observations of the second sample |
KolmogorovTwoSamplesDistribution.Side |
side
the type of KolmogorovDistribution two-sample distribution, i.e., equal, greater, less |
| Constructor Summary | |
|---|---|
KolmogorovTwoSamplesDistribution(double[] sample1,
double[] sample2,
KolmogorovTwoSamplesDistribution.Side side)
Construct a two-sample KolmogorovDistribution distribution. |
|
KolmogorovTwoSamplesDistribution(int n1,
int n2,
double[] samples,
KolmogorovTwoSamplesDistribution.Side side,
int bigN)
Construct a two-sample KolmogorovDistribution distribution. |
|
KolmogorovTwoSamplesDistribution(int n1,
int n2,
KolmogorovTwoSamplesDistribution.Side side,
double[] samples)
Construct a two-sample KolmogorovDistribution distribution. |
|
KolmogorovTwoSamplesDistribution(int n1,
int n2,
KolmogorovTwoSamplesDistribution.Side side,
int bigN)
Construct a two-sample KolmogorovDistribution distribution, assuming that there is no tie in the samples. |
|
| Method Summary | |
|---|---|
double |
cdf(double x)
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 q)
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 KolmogorovTwoSamplesDistribution.Side side
public final int bigN
n > bigN we use the asymptotic distribution
public final int n1
public final int n2
public final int n
| Constructor Detail |
|---|
public KolmogorovTwoSamplesDistribution(int n1,
int n2,
double[] samples,
KolmogorovTwoSamplesDistribution.Side side,
int bigN)
n1 - size of sample 1n2 - size of sample 2samples - the concatenate of the two samples in ascending orderbigN - when n > bigN, we use the asymptotic distribution
public KolmogorovTwoSamplesDistribution(int n1,
int n2,
KolmogorovTwoSamplesDistribution.Side side,
int bigN)
n1 - size of sample 1n2 - size of sample 2bigN - when n > bigN, we use the asymptotic distribution
public KolmogorovTwoSamplesDistribution(int n1,
int n2,
KolmogorovTwoSamplesDistribution.Side side,
double[] samples)
n1 - size of sample 1n2 - size of sample 2side - the type of KolmogorovDistribution two-sample testsamples - the concatenate of the two samples in ascending order
public KolmogorovTwoSamplesDistribution(double[] sample1,
double[] sample2,
KolmogorovTwoSamplesDistribution.Side side)
sample1 - sample 1sample2 - sample 2side - the type of KolmogorovDistribution two-sample test| 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 x)
UnivariateDistribution
F(x) = Pr(X <= x)
cdf in interface UnivariateDistributionx - x
F(x) = Pr(X <= x)@Deprecated public double quantile(double q)
UnivariateDistribution
F-1(u) = x, such that
Pr(X <= x) = u
This may not always exist.
quantile in interface UnivariateDistributionq - 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 | |||||||