public static class NegativeBinomialDistribution.CDF extends NegativeBinomialDistribution implements ClosedFormCumulativeDistributionFunction<java.lang.Number>
NegativeBinomialDistribution.CDF, NegativeBinomialDistribution.MaximumLikelihoodEstimator, NegativeBinomialDistribution.PMF, NegativeBinomialDistribution.WeightedMaximumLikelihoodEstimator
DEFAULT_P, DEFAULT_R, p, r
Constructor and Description |
---|
CDF()
Creates a new instance of CDF
|
CDF(double r,
double p)
Creates a new instance of CDF
|
CDF(NegativeBinomialDistribution 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.
|
NegativeBinomialDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
clone, convertFromVector, convertToVector, getDomain, getDomainSize, getEstimator, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getP, getProbabilityFunction, getR, getVariance, sampleAsInt, sampleInto, sampleInto, setP, setR, toString
sampleAsInts
sample, sample
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, convertFromVector, convertToVector
getMaxSupport, getMeanAsDouble, getMinSupport, getVariance
getMean
sample, sample, sampleInto
public CDF()
public CDF(double r, double p)
r
- Number of trials before the experiment is stopped,
must be greater than zero.p
- Probability of a positive outcome (Bernoulli probability), [0,1]public CDF(NegativeBinomialDistribution other)
other
- NegativeBinomialDistribution to copypublic java.lang.Double evaluate(java.lang.Number input)
Evaluator
public NegativeBinomialDistribution.CDF getCDF()
UnivariateDistribution
getCDF
in interface ClosedFormUnivariateDistribution<java.lang.Number>
getCDF
in interface UnivariateDistribution<java.lang.Number>
getCDF
in class NegativeBinomialDistribution