public static class SnedecorFDistribution.CDF extends SnedecorFDistribution implements ClosedFormCumulativeDistributionFunction<java.lang.Double>, UnivariateScalarFunction
SnedecorFDistribution.CDF
DEFAULT_V1, DEFAULT_V2
Constructor and Description |
---|
CDF()
Default constructor
|
CDF(double v1,
double v2)
Creates a new instance of CumulativeDistribution
|
CDF(SnedecorFDistribution other)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double input)
Produces a double output for the given double input
|
java.lang.Double |
evaluate(java.lang.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(java.lang.Double input)
Evaluates the scalar function as a double.
|
SnedecorFDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
clone, convertFromVector, convertToVector, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getV1, getV2, getVariance, sampleInto, setV1, setV2
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(double v1, double v2)
v1
- First degree of freedomv2
- Second degree of freedompublic CDF(SnedecorFDistribution other)
other
- CumulativeDistribution to copypublic double evaluate(double input)
UnivariateScalarFunction
evaluate
in interface UnivariateScalarFunction
input
- Input to the Evaluatorpublic java.lang.Double evaluate(java.lang.Double input)
Evaluator
evaluate
in interface Evaluator<java.lang.Double,java.lang.Double>
evaluate
in interface ScalarFunction<java.lang.Double>
evaluate
in interface UnivariateScalarFunction
input
- The input to evaluate.public double evaluateAsDouble(java.lang.Double input)
ScalarFunction
evaluateAsDouble
in interface ScalarFunction<java.lang.Double>
evaluateAsDouble
in interface UnivariateScalarFunction
input
- The input value.public static double evaluate(double input, double v1, double v2)
input
- Input independent variable in the F-distributionv1
- First degree of freedomv2
- Second degree of freedompublic SnedecorFDistribution.CDF getCDF()
UnivariateDistribution
getCDF
in interface ClosedFormUnivariateDistribution<java.lang.Double>
getCDF
in interface UnivariateDistribution<java.lang.Double>
getCDF
in class SnedecorFDistribution