| org.apache.commons.math.distribution.PoissonDistribution
All known Subclasses: org.apache.commons.math.distribution.PoissonDistributionImpl,
PoissonDistribution | public interface PoissonDistribution extends IntegerDistribution(Code) | | Interface representing the Poisson Distribution.
References:
version: $Revision: 155427 $ $Date: 2005-02-26 06:11:52 -0700 (Sat, 26 Feb 2005) $ |
Method Summary | |
public double | getMean() Get the mean for the distribution. | public double | normalApproximateProbability(int x) Calculates the Poisson distribution function using a normal approximation. | public void | setMean(double p) Set the mean for the distribution. |
getMean | public double getMean()(Code) | | Get the mean for the distribution.
the mean for the distribution. |
normalApproximateProbability | public double normalApproximateProbability(int x) throws MathException(Code) | | Calculates the Poisson distribution function using a normal approximation.
Parameters: x - the upper bound, inclusive the distribution function value calculated using a normal approximation throws: MathException - if an error occurs computing the normal approximation |
setMean | public void setMean(double p)(Code) | | Set the mean for the distribution.
The parameter value must be positive; otherwise an
IllegalArgument is thrown.
Parameters: p - the mean throws: IllegalArgumentException - if p ≤ 0 |
|
|