@PublicationReference(author="Wikipedia", title="Kolmogorov-Smirnov test, Kolmogorov distribution", type=WebPage, year=2009, url="http://en.wikipedia.org/wiki/Kolmogorov_distribution#Kolmogorov_distribution") public class KolmogorovDistribution extends AbstractClosedFormUnivariateDistribution<java.lang.Double>
Modifier and Type | Class and Description |
---|---|
static class |
KolmogorovDistribution.CDF
Contains the Cumulative Distribution Function description for the "D"
statistic used within the Kolmogorov-Smirnov test.
|
Modifier and Type | Field and Description |
---|---|
static double |
MEAN
Value of the mean, found empirically, as I can't seem to find the
answer in any reference I can get my hands on, 0.868481392844716.
|
static double |
VARIANCE
Value of the variance, found empirically, as I can't seem to find the
answer in any reference I can get my hands on, 0.06759934611527044.
|
Constructor and Description |
---|
KolmogorovDistribution()
Creates a new instance of CumulativeDistribution
|
Modifier and Type | Method and Description |
---|---|
void |
convertFromVector(Vector parameters)
Converts the object from a Vector of parameters.
|
Vector |
convertToVector()
Converts the object to a vector.
|
KolmogorovDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
java.lang.Double |
getMaxSupport()
Gets the minimum support (domain or input) of the distribution.
|
java.lang.Double |
getMean()
Gets the arithmetic mean, or "first central moment" or "expectation",
of the distribution.
|
double |
getMeanAsDouble()
Gets the mean of the distribution as a double.
|
java.lang.Double |
getMinSupport()
Gets the minimum support (domain or input) of the distribution.
|
double |
getVariance()
Gets the variance of the distribution.
|
void |
sampleInto(java.util.Random random,
int sampleCount,
java.util.Collection<? super java.lang.Double> output)
Draws multiple random samples from the distribution and puts the result
into the given collection.
|
clone
sample, sample
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sample, sample
public static final double MEAN
public static final double VARIANCE
public KolmogorovDistribution()
public java.lang.Double getMean()
DistributionWithMean
public double getMeanAsDouble()
UnivariateDistribution
public void sampleInto(java.util.Random random, int sampleCount, java.util.Collection<? super java.lang.Double> output)
Distribution
random
- Random number generator to use.sampleCount
- The number of samples to draw. Cannot be negative.output
- The collection to add the samples into.public double getVariance()
UnivariateDistribution
public KolmogorovDistribution.CDF getCDF()
UnivariateDistribution
public Vector convertToVector()
Vectorizable
public void convertFromVector(Vector parameters)
Vectorizable
parameters
- The parameters to incorporate.public java.lang.Double getMinSupport()
UnivariateDistribution
public java.lang.Double getMaxSupport()
UnivariateDistribution