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

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

CDF of the Yule-Simon Distribution

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.sandia.cognition.statistics.distribution.YuleSimonDistribution
YuleSimonDistribution.CDF, YuleSimonDistribution.PMF
 
Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.distribution.YuleSimonDistribution
DEFAULT_SHAPE, shape
 
Constructor Summary
YuleSimonDistribution.CDF()
          Creates a new instance of YuleSimonDistribution
YuleSimonDistribution.CDF(double shape)
          Creates a new instance of YuleSimonDistribution
YuleSimonDistribution.CDF(YuleSimonDistribution other)
          Copy constructor
 
Method Summary
 Double evaluate(Number input)
          Evaluates the function on the given input and returns the output.
 YuleSimonDistribution.CDF getCDF()
          Gets the CDF of a scalar distribution.
 
Methods inherited from class gov.sandia.cognition.statistics.distribution.YuleSimonDistribution
clone, convertFromVector, convertToVector, getDomain, getDomainSize, getMaxSupport, getMean, getMinSupport, getProbabilityFunction, getShape, getVariance, sample, setShape
 
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

YuleSimonDistribution.CDF

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


YuleSimonDistribution.CDF

public YuleSimonDistribution.CDF(double shape)
Creates a new instance of YuleSimonDistribution

Parameters:
shape - Shape parameter, must be greater than zero

YuleSimonDistribution.CDF

public YuleSimonDistribution.CDF(YuleSimonDistribution other)
Copy constructor

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