jhplot.math.num.pdf
Class Poisson
- java.lang.Object
- 
- jhplot.math.num.pdf.DiscreteDistribution
- 
- jhplot.math.num.pdf.Poisson
 
 
- 
- All Implemented Interfaces:
- Distribution
 
 
 public class Poisson extends DiscreteDistribution The Poisson distribution. References: - Eric W. Weisstein. "Poisson Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/Poisson.html
 - Since:
- 1.2
 
- 
- 
Constructor SummaryConstructors Constructor and Description Poisson()Default distribution.Poisson(double m)Create a distribution with the given mean.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecumulativeProbability(int x)The CDF for this distribution.doublegetMean()Access the mean.intinverseCumulativeProbability(double p)The inverse CDF for this distribution.doubleprobability(int x)The PMF for this distribution.voidsetMean(double m)Modify the mean.
 
- 
- 
- 
Constructor Detail- 
Poissonpublic Poisson() Default distribution. The means is set to one.
 - 
Poissonpublic Poisson(double m) Create a distribution with the given mean.- Parameters:
- m- the mean.
 
 
- 
 - 
Method Detail- 
cumulativeProbabilitypublic double cumulativeProbability(int x) throws NumericExceptionThe CDF for this distribution. This method returns P(X ≤ x).- Specified by:
- cumulativeProbabilityin 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.
 
 - 
inverseCumulativeProbabilitypublic int inverseCumulativeProbability(double p) throws NumericExceptionThe 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:
- inverseCumulativeProbabilityin class- DiscreteDistribution
- Parameters:
- p- the cumulative probability.
- Returns:
- x
- Throws:
- NumericException- if the inverse cumulative probability can not be computed.
 
 - 
probabilitypublic double probability(int x) The PMF for this distribution. This method returns P(X = x).- Specified by:
- probabilityin class- DiscreteDistribution
- Parameters:
- x- the value at which the probability is evaluated.
- Returns:
- PMF for this distribution.
 
 - 
getMeanpublic double getMean() Access the mean.- Returns:
- the mean.
 
 - 
setMeanpublic void setMean(double m) Modify the mean.- Parameters:
- m- the new mean value.
 
 
- 
 
- 
DMelt 3.0 © DataMelt by jWork.ORG