public static class PoissonDistribution.PMF extends PoissonDistribution implements ProbabilityMassFunction<java.lang.Number>
PoissonDistribution.CDF, PoissonDistribution.MaximumLikelihoodEstimator, PoissonDistribution.PMF, PoissonDistribution.WeightedMaximumLikelihoodEstimator
DEFAULT_RATE, rate
Constructor and Description |
---|
PMF()
Default constructor.
|
PMF(double rate)
Creates a new PMF
|
PMF(PoissonDistribution other)
Copy constructor
|
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.
|
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(java.lang.Number input)
Evaluate the natural logarithm of the distribution function.
|
clone, convertFromVector, convertToVector, getCDF, getDomain, getDomainSize, getEstimator, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getRate, getVariance, sampleAsInt, sampleInto, sampleInto, setRate
sampleAsInts
sample, sample
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomain, getDomainSize
sample, sample, sampleInto
clone
public PMF()
public PMF(double rate)
rate
- Expected number of occurrences during the integer interval, must be
greater than zero.public PMF(PoissonDistribution other)
other
- PoissonDistribution to copypublic double getEntropy()
ProbabilityMassFunction
getEntropy
in interface ProbabilityMassFunction<java.lang.Number>
public java.lang.Double evaluate(java.lang.Number input)
Evaluator
public double logEvaluate(java.lang.Number input)
ProbabilityFunction
logEvaluate
in interface ProbabilityFunction<java.lang.Number>
input
- The input to be evaluatedpublic PoissonDistribution.PMF getProbabilityFunction()
ComputableDistribution
getProbabilityFunction
in interface ComputableDistribution<java.lang.Number>
getProbabilityFunction
in interface DiscreteDistribution<java.lang.Number>
getProbabilityFunction
in interface ProbabilityMassFunction<java.lang.Number>
getProbabilityFunction
in class PoissonDistribution