public static class BetaBinomialDistribution.CDF extends BetaBinomialDistribution implements ClosedFormCumulativeDistributionFunction<java.lang.Number>
BetaBinomialDistribution.CDF, BetaBinomialDistribution.MomentMatchingEstimator, BetaBinomialDistribution.PMF
DEFAULT_N, DEFAULT_SCALE, DEFAULT_SHAPE, n, scale, shape
Constructor and Description |
---|
CDF()
Creates a new instance of BetaBinomialDistribution
|
CDF(BetaBinomialDistribution other)
Copy constructor
|
CDF(int n,
double shape,
double scale)
Creates a new instance of BetaBinomialDistribution
|
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.
|
BetaBinomialDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
clone, convertFromVector, convertToVector, getDomain, getDomainSize, getEstimator, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getN, getProbabilityFunction, getScale, getShape, getVariance, sampleAsInt, sampleInto, sampleInto, setN, setScale, setShape
sampleAsInts
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(int n, double shape, double scale)
shape
- Shape, similar to the beta parameter shape, must be greater than zeroscale
- Scale, similar to the beta parameter scale, must be greater than zeron
- Number of observations, similar to the Binomial N,
must be greater than zeropublic CDF(BetaBinomialDistribution other)
other
- BetaBinomialDistribution to copypublic java.lang.Double evaluate(java.lang.Number input)
Evaluator
public BetaBinomialDistribution.CDF getCDF()
UnivariateDistribution
getCDF
in interface ClosedFormUnivariateDistribution<java.lang.Number>
getCDF
in interface UnivariateDistribution<java.lang.Number>
getCDF
in class BetaBinomialDistribution