public static class DeterministicDistribution.CDF extends DeterministicDistribution implements ClosedFormCumulativeDistributionFunction<java.lang.Double>, UnivariateScalarFunction
DeterministicDistribution.CDF, DeterministicDistribution.PMF
DEFAULT_POINT
Constructor and Description |
---|
CDF()
Creates a new instance of DeterministicDistribution
|
CDF(DeterministicDistribution other)
Copy Constructor
|
CDF(double point)
Creates a new instance of DeterministicDistribution
|
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.
|
double |
evaluateAsDouble(java.lang.Double input)
Evaluates the scalar function as a double.
|
DeterministicDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
convertFromVector, convertToVector, getDomain, getDomainSize, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getPoint, getProbabilityFunction, getVariance, sampleInto, setPoint
clone
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 point)
point
- Location of the distributionpublic CDF(DeterministicDistribution other)
other
- DeterministicDistribution to copypublic 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 double evaluate(double input)
UnivariateScalarFunction
evaluate
in interface UnivariateScalarFunction
input
- Input to the Evaluatorpublic DeterministicDistribution.CDF getCDF()
UnivariateDistribution
getCDF
in interface ClosedFormUnivariateDistribution<java.lang.Double>
getCDF
in interface UnivariateDistribution<java.lang.Double>
getCDF
in class DeterministicDistribution