gov.sandia.cognition.statistics.distribution
Class GeometricDistribution.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.GeometricDistribution
                  extended by gov.sandia.cognition.statistics.distribution.GeometricDistribution.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,GeometricDistribution>, UnivariateDistribution<Number>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
GeometricDistribution

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

CDF of the Geometric distribution

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.sandia.cognition.statistics.distribution.GeometricDistribution
GeometricDistribution.CDF, GeometricDistribution.MaximumLikelihoodEstimator, GeometricDistribution.PMF
 
Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.distribution.GeometricDistribution
DEFAULT_P, p
 
Constructor Summary
GeometricDistribution.CDF()
          Creates a new instance of GeometricDistribution
GeometricDistribution.CDF(double p)
          Creates a new instance of GeometricDistribution
GeometricDistribution.CDF(GeometricDistribution other)
          Copy constructor
 
Method Summary
 Double evaluate(Number input)
          Evaluates the function on the given input and returns the output.
 GeometricDistribution.CDF getCDF()
          Gets the CDF of a scalar distribution.
 
Methods inherited from class gov.sandia.cognition.statistics.distribution.GeometricDistribution
clone, convertFromVector, convertToVector, getDomain, getDomainSize, getEstimator, getMaxSupport, getMean, getMinSupport, getP, getProbabilityFunction, getVariance, sample, setP
 
Methods inherited from class gov.sandia.cognition.statistics.AbstractDistribution
sample
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

GeometricDistribution.CDF

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


GeometricDistribution.CDF

public GeometricDistribution.CDF(double p)
Creates a new instance of GeometricDistribution

Parameters:
p - Probability of a positive outcome (Bernoulli probability), [0,1]

GeometricDistribution.CDF

public GeometricDistribution.CDF(GeometricDistribution other)
Copy constructor

Parameters:
other - GeometricDistribution 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 GeometricDistribution.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 GeometricDistribution
Returns:
CDF of the scalar distribution.