public static class NegativeBinomialDistribution.CDF extends NegativeBinomialDistribution implements ClosedFormCumulativeDistributionFunction<java.lang.Number>
NegativeBinomialDistribution.CDF, NegativeBinomialDistribution.MaximumLikelihoodEstimator, NegativeBinomialDistribution.PMF, NegativeBinomialDistribution.WeightedMaximumLikelihoodEstimatorDEFAULT_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, toStringsampleAsIntssample, sampleequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, convertFromVector, convertToVectorgetMaxSupport, getMeanAsDouble, getMinSupport, getVariancegetMeansample, sample, sampleIntopublic 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)
Evaluatorpublic NegativeBinomialDistribution.CDF getCDF()
UnivariateDistributiongetCDF in interface ClosedFormUnivariateDistribution<java.lang.Number>getCDF in interface UnivariateDistribution<java.lang.Number>getCDF in class NegativeBinomialDistribution