public static class GeometricDistribution.CDF extends GeometricDistribution implements ClosedFormCumulativeDistributionFunction<java.lang.Number>
GeometricDistribution.CDF, GeometricDistribution.MaximumLikelihoodEstimator, GeometricDistribution.PMF
DEFAULT_P, p
Constructor and Description |
---|
CDF()
Creates a new instance of GeometricDistribution
|
CDF(double p)
Creates a new instance of GeometricDistribution
|
CDF(GeometricDistribution other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
evaluate(java.lang.Number input)
Evaluates the function on the given input and returns the output.
|
GeometricDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
clone, convertFromVector, convertToVector, getDomain, getDomainSize, getEstimator, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getP, getProbabilityFunction, getVariance, sampleAsInt, sampleInto, setP
sampleAsInts, sampleInto
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 p)
p
- Probability of a positive outcome (Bernoulli probability), [0,1]public CDF(GeometricDistribution other)
other
- GeometricDistribution to copypublic java.lang.Double evaluate(java.lang.Number input)
Evaluator
public GeometricDistribution.CDF getCDF()
UnivariateDistribution
getCDF
in interface ClosedFormUnivariateDistribution<java.lang.Number>
getCDF
in interface UnivariateDistribution<java.lang.Number>
getCDF
in class GeometricDistribution