gov.sandia.cognition.statistics.distribution
Class SnedecorFDistribution.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.SnedecorFDistribution
                  extended by gov.sandia.cognition.statistics.distribution.SnedecorFDistribution.CDF
All Implemented Interfaces:
Evaluator<Double,Double>, Vectorizable, ScalarFunction<Double>, UnivariateScalarFunction, ClosedFormCumulativeDistributionFunction<Double>, ClosedFormDistribution<Double>, ClosedFormUnivariateDistribution<Double>, CumulativeDistributionFunction<Double>, Distribution<Double>, DistributionWithMean<Double>, UnivariateDistribution<Double>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
SnedecorFDistribution

public static class SnedecorFDistribution.CDF
extends SnedecorFDistribution
implements ClosedFormCumulativeDistributionFunction<Double>, UnivariateScalarFunction

CDF of the F-distribution.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.sandia.cognition.statistics.distribution.SnedecorFDistribution
SnedecorFDistribution.CDF
 
Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.distribution.SnedecorFDistribution
DEFAULT_V1, DEFAULT_V2
 
Constructor Summary
SnedecorFDistribution.CDF()
          Default constructor
SnedecorFDistribution.CDF(double v1, double v2)
          Creates a new instance of CumulativeDistribution
SnedecorFDistribution.CDF(SnedecorFDistribution other)
          Copy Constructor
 
Method Summary
 double evaluate(double input)
          Produces a double output for the given double input
 Double evaluate(Double input)
          Evaluates the function on the given input and returns the output.
static double evaluate(double input, double v1, double v2)
          Evaluates the F-distribution CDF(input,v1,v2)
 double evaluateAsDouble(Double input)
          Evaluates the scalar function as a double.
 SnedecorFDistribution.CDF getCDF()
          Gets the CDF of a scalar distribution.
 
Methods inherited from class gov.sandia.cognition.statistics.distribution.SnedecorFDistribution
clone, convertFromVector, convertToVector, getMaxSupport, getMean, getMinSupport, getV1, getV2, getVariance, sample, setV1, setV2
 
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

SnedecorFDistribution.CDF

public SnedecorFDistribution.CDF()
Default constructor


SnedecorFDistribution.CDF

public SnedecorFDistribution.CDF(double v1,
                                 double v2)
Creates a new instance of CumulativeDistribution

Parameters:
v1 - First degree of freedom
v2 - Second degree of freedom

SnedecorFDistribution.CDF

public SnedecorFDistribution.CDF(SnedecorFDistribution other)
Copy Constructor

Parameters:
other - CumulativeDistribution to copy
Method Detail

evaluate

public double evaluate(double input)
Description copied from interface: UnivariateScalarFunction
Produces a double output for the given double input

Specified by:
evaluate in interface UnivariateScalarFunction
Parameters:
input - Input to the Evaluator
Returns:
output at the given input

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.

evaluateAsDouble

public double evaluateAsDouble(Double input)
Description copied from interface: ScalarFunction
Evaluates the scalar function as a double.

Specified by:
evaluateAsDouble in interface ScalarFunction<Double>
Parameters:
input - The input value.
Returns:
The scalar output calculated from the given input.

evaluate

public static double evaluate(double input,
                              double v1,
                              double v2)
Evaluates the F-distribution CDF(input,v1,v2)

Parameters:
input - Input independent variable in the F-distribution
v1 - First degree of freedom
v2 - Second degree of freedom
Returns:
Probability of the CDF(input,v1,v2)

getCDF

public SnedecorFDistribution.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 SnedecorFDistribution
Returns:
CDF of the scalar distribution.