public class Poisson extends DiscreteDistribution
The Poisson distribution.
References:
| Constructor and Description |
|---|
Poisson()
Default distribution.
|
Poisson(double m)
Create a distribution with the given mean.
|
| Modifier and Type | Method 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.
|
public Poisson()
public Poisson(double m)
m - the mean.public double cumulativeProbability(int x)
throws NumericException
cumulativeProbability in class DiscreteDistributionx - the value at which the CDF is evaluated.NumericException - if the cumulative probability can not be
computed.public int inverseCumulativeProbability(double p)
throws NumericException
inverseCumulativeProbability in class DiscreteDistributionp - the cumulative probability.NumericException - if the inverse cumulative probability can not be
computed.public double probability(int x)
probability in class DiscreteDistributionx - the value at which the probability is evaluated.public double getMean()
public void setMean(double m)
m - the new mean value.DMelt 2.0 © DataMelt by jWork.ORG