gov.sandia.cognition.statistics.distribution
Class StudentizedRangeDistribution.CDF

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.AbstractDistribution<NumberType>
          extended by gov.sandia.cognition.statistics.AbstractClosedFormUnivariateDistribution<Double>
              extended by gov.sandia.cognition.statistics.distribution.StudentizedRangeDistribution
                  extended by gov.sandia.cognition.statistics.distribution.StudentizedRangeDistribution.CDF
All Implemented Interfaces:
Evaluator<Double,Double>, Vectorizable, ClosedFormCumulativeDistributionFunction<Double>, ClosedFormDistribution<Double>, ClosedFormUnivariateDistribution<Double>, CumulativeDistributionFunction<Double>, Distribution<Double>, DistributionWithMean<Double>, InvertibleCumulativeDistributionFunction<Double>, UnivariateDistribution<Double>, CloneableSerializable, Randomized, Serializable, Cloneable
Enclosing class:
StudentizedRangeDistribution

public static class StudentizedRangeDistribution.CDF
extends StudentizedRangeDistribution
implements ClosedFormCumulativeDistributionFunction<Double>, InvertibleCumulativeDistributionFunction<Double>

CDF of the StudentizedRangeDistribution

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.sandia.cognition.statistics.distribution.StudentizedRangeDistribution
StudentizedRangeDistribution.APStat, StudentizedRangeDistribution.CDF, StudentizedRangeDistribution.SampleRange
 
Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.distribution.StudentizedRangeDistribution
DEFAULT_DEGREES_OF_FREEDOM, DEFAULT_NUM_SAMPLES, DEFAULT_TREATMENT_COUNT, degreesOfFreedom, random, treatmentCount
 
Constructor Summary
StudentizedRangeDistribution.CDF()
          Default constructor
StudentizedRangeDistribution.CDF(int treatmentCount, double degreesOfFreedom)
          Creates a new instance of StudentizedRangeDistribution
StudentizedRangeDistribution.CDF(StudentizedRangeDistribution other)
          Copy constructor
 
Method Summary
 Double evaluate(Double input)
          Evaluates the function on the given input and returns the output.
 StudentizedRangeDistribution.CDF getCDF()
          Gets the CDF of a scalar distribution.
 Double inverse(double probability)
          Computes the inverse of the CDF for the given probability.
 
Methods inherited from class gov.sandia.cognition.statistics.distribution.StudentizedRangeDistribution
clone, convertFromVector, convertToVector, getDegreesOfFreedom, getMaxSupport, getMean, getMinSupport, getRandom, getTreatmentCount, getVariance, sample, setDegreesOfFreedom, setRandom, setTreatmentCount
 
Methods inherited from class gov.sandia.cognition.statistics.AbstractDistribution
sample
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.math.matrix.Vectorizable
clone, convertFromVector, convertToVector
 
Methods inherited from interface gov.sandia.cognition.statistics.UnivariateDistribution
getMaxSupport, getMinSupport, getVariance
 
Methods inherited from interface gov.sandia.cognition.statistics.DistributionWithMean
getMean
 
Methods inherited from interface gov.sandia.cognition.statistics.Distribution
sample, sample
 

Constructor Detail

StudentizedRangeDistribution.CDF

public StudentizedRangeDistribution.CDF()
Default constructor


StudentizedRangeDistribution.CDF

public StudentizedRangeDistribution.CDF(int treatmentCount,
                                        double degreesOfFreedom)
Creates a new instance of StudentizedRangeDistribution

Parameters:
treatmentCount - Number of comparisons made
degreesOfFreedom - Number of subjects in each treatment minus one.

StudentizedRangeDistribution.CDF

public StudentizedRangeDistribution.CDF(StudentizedRangeDistribution other)
Copy constructor

Parameters:
other - StudentizedRangeDistribution to copy
Method Detail

evaluate

public Double evaluate(Double input)
Description copied from interface: Evaluator
Evaluates the function on the given input and returns the output.

Specified by:
evaluate in interface Evaluator<Double,Double>
Parameters:
input - The input to evaluate.
Returns:
The output produced by evaluating the input.

inverse

public Double inverse(double probability)
Description copied from interface: InvertibleCumulativeDistributionFunction
Computes the inverse of the CDF for the given probability. That is, compute the value "x" such that p=CDF(x).

Specified by:
inverse in interface InvertibleCumulativeDistributionFunction<Double>
Parameters:
probability - Probability to invert.
Returns:
Inverse of the CDF for the given probability.

getCDF

public StudentizedRangeDistribution.CDF getCDF()
Description copied from interface: UnivariateDistribution
Gets the CDF of a scalar distribution.

Specified by:
getCDF in interface ClosedFormUnivariateDistribution<Double>
Specified by:
getCDF in interface UnivariateDistribution<Double>
Overrides:
getCDF in class StudentizedRangeDistribution
Returns:
CDF of the scalar distribution.