gov.sandia.cognition.statistics.distribution
Class PoissonDistribution.PMF

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.PoissonDistribution
                  extended by gov.sandia.cognition.statistics.distribution.PoissonDistribution.PMF
All Implemented Interfaces:
Evaluator<Number,Double>, Vectorizable, ClosedFormComputableDistribution<Number>, ClosedFormDiscreteUnivariateDistribution<Number>, ClosedFormDistribution<Number>, ClosedFormUnivariateDistribution<Number>, ComputableDistribution<Number>, DiscreteDistribution<Number>, Distribution<Number>, DistributionWithMean<Number>, EstimableDistribution<Number,PoissonDistribution>, ProbabilityFunction<Number>, ProbabilityMassFunction<Number>, UnivariateDistribution<Number>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
PoissonDistribution

public static class PoissonDistribution.PMF
extends PoissonDistribution
implements ProbabilityMassFunction<Number>

PMF of the PoissonDistribution.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.sandia.cognition.statistics.distribution.PoissonDistribution
PoissonDistribution.CDF, PoissonDistribution.MaximumLikelihoodEstimator, PoissonDistribution.PMF, PoissonDistribution.WeightedMaximumLikelihoodEstimator
 
Field Summary
 
Fields inherited from class gov.sandia.cognition.statistics.distribution.PoissonDistribution
DEFAULT_RATE, rate
 
Constructor Summary
PoissonDistribution.PMF()
          Default constructor.
PoissonDistribution.PMF(double rate)
          Creates a new PMF
PoissonDistribution.PMF(PoissonDistribution other)
          Copy constructor
 
Method Summary
 Double evaluate(Number input)
          Evaluates the function on the given input and returns the output.
 double getEntropy()
          Gets the entropy of the values in the histogram.
 PoissonDistribution.PMF getProbabilityFunction()
          Gets the distribution function associated with this Distribution, either the PDF or PMF.
 double logEvaluate(Number input)
          Evaluate the natural logarithm of the distribution function.
 
Methods inherited from class gov.sandia.cognition.statistics.distribution.PoissonDistribution
clone, convertFromVector, convertToVector, getCDF, getDomain, getDomainSize, getEstimator, getMaxSupport, getMean, getMinSupport, getRate, getVariance, sample, setRate
 
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.statistics.DiscreteDistribution
getDomain, getDomainSize
 
Methods inherited from interface gov.sandia.cognition.statistics.Distribution
sample, sample
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

PoissonDistribution.PMF

public PoissonDistribution.PMF()
Default constructor.


PoissonDistribution.PMF

public PoissonDistribution.PMF(double rate)
Creates a new PMF

Parameters:
rate - Expected number of occurrences during the integer interval, must be greater than zero.

PoissonDistribution.PMF

public PoissonDistribution.PMF(PoissonDistribution other)
Copy constructor

Parameters:
other - PoissonDistribution to copy
Method Detail

getEntropy

public double getEntropy()
Description copied from interface: ProbabilityMassFunction
Gets the entropy of the values in the histogram.

Specified by:
getEntropy in interface ProbabilityMassFunction<Number>
Returns:
The entropy of the values in the histogram.

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.

logEvaluate

public double logEvaluate(Number input)
Description copied from interface: ProbabilityFunction
Evaluate the natural logarithm of the distribution function. This is sometimes more efficient than evaluating the distribution function itself, and when evaluating the product of many independent or exchangeable samples.

Specified by:
logEvaluate in interface ProbabilityFunction<Number>
Returns:
Natural logarithm of the distribution function.

getProbabilityFunction

public PoissonDistribution.PMF getProbabilityFunction()
Description copied from interface: ComputableDistribution
Gets the distribution function associated with this Distribution, either the PDF or PMF.

Specified by:
getProbabilityFunction in interface ComputableDistribution<Number>
Specified by:
getProbabilityFunction in interface DiscreteDistribution<Number>
Specified by:
getProbabilityFunction in interface ProbabilityMassFunction<Number>
Overrides:
getProbabilityFunction in class PoissonDistribution
Returns:
Distribution function associated with this Distribution.