API documentation of the 'jhplot.math.num.pdf.Poisson' Java class
Poisson
jhplot.math.num.pdf

## Class Poisson

Poisson
jhplot.math.num.pdf

## Class Poisson

• All Implemented Interfaces:
Distribution

`public class Poissonextends DiscreteDistribution`

The Poisson distribution.

References:

1. Eric W. Weisstein. "Poisson Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Poisson.html

Since:
1.2
• ### Constructor Summary

Constructors
Constructor and Description
`Poisson()`
Default distribution.
`Poisson(double m)`
Create a distribution with the given mean.
• ### Method Summary

All Methods
Modifier and TypeMethod and Description
`double``cumulativeProbability(int x)`
The CDF for this distribution.
`double``getMean()`
Access the mean.
`int``inverseCumulativeProbability(double p)`
The inverse CDF for this distribution.
`double``probability(int x)`
The PMF for this distribution.
`void``setMean(double m)`
Modify the mean.
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Constructor Detail

• #### Poisson

`public Poisson()`
Default distribution. The means is set to one.
• #### Poisson

`public Poisson(double m)`
Create a distribution with the given mean.
Parameters:
`m` - the mean.
• ### Method Detail

• #### cumulativeProbability

`public double cumulativeProbability(int x)                             throws NumericException`
The CDF for this distribution. This method returns P(X ≤ x).
Specified by:
`cumulativeProbability` in class `DiscreteDistribution`
Parameters:
`x` - the value at which the CDF is evaluated.
Returns:
CDF for this distribution.
Throws:
`NumericException` - if the cumulative probability can not be computed.
• #### inverseCumulativeProbability

`public int inverseCumulativeProbability(double p)                                 throws NumericException`
The inverse CDF for this distribution. This method returns the largest x such that, P(X ≤ x) ≤ p. The return value must also satisfy P(X ≥ x) &ge 1 - p.
Specified by:
`inverseCumulativeProbability` in class `DiscreteDistribution`
Parameters:
`p` - the cumulative probability.
Returns:
x
Throws:
`NumericException` - if the inverse cumulative probability can not be computed.
• #### probability

`public double probability(int x)`
The PMF for this distribution. This method returns P(X = x).
Specified by:
`probability` in class `DiscreteDistribution`
Parameters:
`x` - the value at which the probability is evaluated.
Returns:
PMF for this distribution.
• #### getMean

`public double getMean()`
Access the mean.
Returns:
the mean.
• #### setMean

`public void setMean(double m)`
Modify the mean.
Parameters:
`m` - the new mean value.

DMelt 2.2 © DataMelt by jWork.ORG