gov.sandia.cognition.statistics.distribution
Class NegativeBinomialDistribution.CDF

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.AbstractDistribution<NumberType>
          extended by gov.sandia.cognition.statistics.AbstractClosedFormUnivariateDistribution<Number>
              extended by gov.sandia.cognition.statistics.distribution.NegativeBinomialDistribution
                  extended by gov.sandia.cognition.statistics.distribution.NegativeBinomialDistribution.CDF
All Implemented Interfaces:
Evaluator<Number,Double>, Vectorizable, ClosedFormComputableDistribution<Number>, ClosedFormCumulativeDistributionFunction<Number>, ClosedFormDiscreteUnivariateDistribution<Number>, ClosedFormDistribution<Number>, ClosedFormUnivariateDistribution<Number>, ComputableDistribution<Number>, CumulativeDistributionFunction<Number>, DiscreteDistribution<Number>, Distribution<Number>, DistributionWithMean<Number>, EstimableDistribution<Number,NegativeBinomialDistribution>, UnivariateDistribution<Number>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
NegativeBinomialDistribution

public static class NegativeBinomialDistribution.CDF
extends NegativeBinomialDistribution
implements ClosedFormCumulativeDistributionFunction<Number>

CDF of the NegativeBinomialDistribution

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.sandia.cognition.statistics.distribution.NegativeBinomialDistribution
NegativeBinomialDistribution.CDF, NegativeBinomialDistribution.MaximumLikelihoodEstimator, NegativeBinomialDistribution.PMF, NegativeBinomialDistribution.WeightedMaximumLikelihoodEstimator
 
Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.distribution.NegativeBinomialDistribution
DEFAULT_P, DEFAULT_R, p, r
 
Constructor Summary
NegativeBinomialDistribution.CDF()
          Creates a new instance of CDF
NegativeBinomialDistribution.CDF(double r, double p)
          Creates a new instance of CDF
NegativeBinomialDistribution.CDF(NegativeBinomialDistribution other)
          Copy constructor
 
Method Summary
 Double evaluate(Number input)
          Evaluates the function on the given input and returns the output.
 NegativeBinomialDistribution.CDF getCDF()
          Gets the CDF of a scalar distribution.
 
Methods inherited from class gov.sandia.cognition.statistics.distribution.NegativeBinomialDistribution
clone, convertFromVector, convertToVector, getDomain, getDomainSize, getEstimator, getMaxSupport, getMean, getMinSupport, getP, getProbabilityFunction, getR, getVariance, sample, setP, setR, toString
 
Methods inherited from class gov.sandia.cognition.statistics.AbstractDistribution
sample
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.math.matrix.Vectorizable
clone, convertFromVector, convertToVector
 
Methods inherited from interface gov.sandia.cognition.statistics.UnivariateDistribution
getMaxSupport, getMinSupport, getVariance
 
Methods inherited from interface gov.sandia.cognition.statistics.DistributionWithMean
getMean
 
Methods inherited from interface gov.sandia.cognition.statistics.Distribution
sample, sample
 

Constructor Detail

NegativeBinomialDistribution.CDF

public NegativeBinomialDistribution.CDF()
Creates a new instance of CDF


NegativeBinomialDistribution.CDF

public NegativeBinomialDistribution.CDF(double r,
                                        double p)
Creates a new instance of CDF

Parameters:
r - Number of trials before the experiment is stopped, must be greater than zero.
p - Probability of a positive outcome (Bernoulli probability), [0,1]

NegativeBinomialDistribution.CDF

public NegativeBinomialDistribution.CDF(NegativeBinomialDistribution other)
Copy constructor

Parameters:
other - NegativeBinomialDistribution to copy
Method Detail

evaluate

public Double evaluate(Number input)
Description copied from interface: Evaluator
Evaluates the function on the given input and returns the output.

Specified by:
evaluate in interface Evaluator<Number,Double>
Parameters:
input - The input to evaluate.
Returns:
The output produced by evaluating the input.

getCDF

public NegativeBinomialDistribution.CDF getCDF()
Description copied from interface: UnivariateDistribution
Gets the CDF of a scalar distribution.

Specified by:
getCDF in interface ClosedFormUnivariateDistribution<Number>
Specified by:
getCDF in interface UnivariateDistribution<Number>
Overrides:
getCDF in class NegativeBinomialDistribution
Returns:
CDF of the scalar distribution.