public static class StudentizedRangeDistribution.CDF extends StudentizedRangeDistribution implements ClosedFormCumulativeDistributionFunction<java.lang.Double>, InvertibleCumulativeDistributionFunction<java.lang.Double>
StudentizedRangeDistribution.APStat, StudentizedRangeDistribution.CDF, StudentizedRangeDistribution.SampleRange
DEFAULT_DEGREES_OF_FREEDOM, DEFAULT_NUM_SAMPLES, DEFAULT_TREATMENT_COUNT, degreesOfFreedom, random, treatmentCount
Constructor and Description |
---|
CDF()
Default constructor
|
CDF(int treatmentCount,
double degreesOfFreedom)
Creates a new instance of StudentizedRangeDistribution
|
CDF(StudentizedRangeDistribution other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(java.lang.Double input)
Evaluates the function on the given input and returns the output.
|
StudentizedRangeDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
java.lang.Double |
inverse(double probability)
Computes the inverse of the CDF for the given probability.
|
clone, convertFromVector, convertToVector, getDegreesOfFreedom, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getRandom, getTreatmentCount, getVariance, sampleInto, setDegreesOfFreedom, setRandom, setTreatmentCount
sample, sample
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, convertFromVector, convertToVector
getMaxSupport, getMeanAsDouble, getMinSupport, getVariance
getMean
sample, sample, sampleInto
public CDF()
public CDF(int treatmentCount, double degreesOfFreedom)
treatmentCount
- Number of comparisons madedegreesOfFreedom
- Number of subjects in each treatment minus one.public CDF(StudentizedRangeDistribution other)
other
- StudentizedRangeDistribution to copypublic java.lang.Double evaluate(java.lang.Double input)
Evaluator
public java.lang.Double inverse(double probability)
InvertibleCumulativeDistributionFunction
inverse
in interface InvertibleCumulativeDistributionFunction<java.lang.Double>
probability
- Probability to invert.public StudentizedRangeDistribution.CDF getCDF()
UnivariateDistribution
getCDF
in interface ClosedFormUnivariateDistribution<java.lang.Double>
getCDF
in interface UnivariateDistribution<java.lang.Double>
getCDF
in class StudentizedRangeDistribution