| Modifier and Type | Field and Description |
|---|---|
| public static final double | DEFAULT_EPSILON
Default convergence criterion. |
| public static final int | DEFAULT_MAX_ITERATIONS
Default maximum number of iterations for cumulative probability calculations. |
| private final double | epsilon
Convergence criterion for cumulative probability. |
| private final ExponentialDistribution | exponential
Distribution needed for the |
| private final int | maxIterations
Maximum number of iterations for cumulative probability. |
| private final double | mean
Mean of the distribution. |
| private final NormalDistribution | normal
Distribution used to compute normal approximation. |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | PoissonDistribution(double
the Poisson mean p)Creates a new Poisson distribution with specified mean. |
| public | PoissonDistribution(double
Poisson mean. p, double Convergence criterion for cumulative probabilities. epsilon, int the maximum number of iterations for cumulative
probabilities. maxIterations)Creates a new Poisson distribution with specified mean, convergence criterion and maximum number of iterations. |
| public | PoissonDistribution(RandomGenerator
Random number generator. rng, double Poisson mean. p, double Convergence criterion for cumulative probabilities. epsilon, int the maximum number of iterations for cumulative
probabilities. maxIterations)Creates a new Poisson distribution with specified mean, convergence criterion and maximum number of iterations. |
| public | PoissonDistribution(double
Poisson mean. p, double Convergence criterion for cumulative probabilities. epsilon)Creates a new Poisson distribution with the specified mean and convergence criterion. |
| public | PoissonDistribution(double
Poisson mean. p, int Maximum number of iterations for cumulative
probabilities. maxIterations)Creates a new Poisson distribution with the specified mean and maximum number of iterations. |
| Modifier and Type | Method and Description |
|---|---|
| public double | cumulativeProbability(int
the point at which the CDF is evaluated x)Implements org. For a random variable |
| public double | |
| public double | getNumericalMean()
Implements org. Use this method to get the numerical value of the mean of this distribution. |
| public double | getNumericalVariance()
Implements org. Use this method to get the numerical value of the variance of this distribution. |
| public int | Returns: lower bound of the support (always 0)Implements org. Access the lower bound of the support. |
| public int | Returns: upper bound of the support (alwaysInteger.MAX_VALUE for
positive infinity)Implements org. Access the upper bound of the support. |
| public boolean | Returns: trueImplements org. Use this method to get information about whether the support is connected, i.e. whether all integers between the lower and upper bound of the support are included in the support. |
| public double | logProbability(int
the point at which the PMF is evaluated x)Overrides org. For a random variable |
| private long | |
| public double | Returns: the distribution function value calculated using a normal approximation.Upper bound, inclusive. x)Calculates the Poisson distribution function using a normal approximation. |
| public double | probability(int
the point at which the PMF is evaluated x)Implements org. For a random variable |
| public int | Returns: a random value.Overrides org. Implements org. Generate a random value sampled from this distribution. |
| DEFAULT_EPSILON | back to summary |
|---|---|
| public static final double DEFAULT_EPSILON Default convergence criterion.
| |
| DEFAULT_MAX_ITERATIONS | back to summary |
|---|---|
| public static final int DEFAULT_MAX_ITERATIONS Default maximum number of iterations for cumulative probability calculations.
| |
| epsilon | back to summary |
|---|---|
| private final double epsilon Convergence criterion for cumulative probability. | |
| exponential | back to summary |
|---|---|
| private final ExponentialDistribution exponential Distribution needed for the | |
| maxIterations | back to summary |
|---|---|
| private final int maxIterations Maximum number of iterations for cumulative probability. Cumulative
probabilities are estimated using either Lanczos series approximation
of | |
| mean | back to summary |
|---|---|
| private final double mean Mean of the distribution. | |
| normal | back to summary |
|---|---|
| private final NormalDistribution normal Distribution used to compute normal approximation. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serializable version identifier. | |
| PoissonDistribution | back to summary |
|---|---|
| public PoissonDistribution(double p) throws NotStrictlyPositiveException Creates a new Poisson distribution with specified mean. Note this constructor will implicitly create an instance of
| |
| PoissonDistribution | back to summary |
|---|---|
| public PoissonDistribution(double p, double epsilon, int maxIterations) throws NotStrictlyPositiveException Creates a new Poisson distribution with specified mean, convergence criterion and maximum number of iterations. Note this constructor will implicitly create an instance of
| |
| PoissonDistribution | back to summary |
|---|---|
| public PoissonDistribution(RandomGenerator rng, double p, double epsilon, int maxIterations) throws NotStrictlyPositiveException Creates a new Poisson distribution with specified mean, convergence criterion and maximum number of iterations.
| |
| PoissonDistribution | back to summary |
|---|---|
| public PoissonDistribution(double p, double epsilon) throws NotStrictlyPositiveException Creates a new Poisson distribution with the specified mean and convergence criterion.
| |
| PoissonDistribution | back to summary |
|---|---|
| public PoissonDistribution(double p, int maxIterations) Creates a new Poisson distribution with the specified mean and maximum number of iterations.
| |
| cumulativeProbability | back to summary |
|---|---|
| public double cumulativeProbability(int x) Implements org. Doc from org. For a random variable
| |
| getMean | back to summary |
|---|---|
| public double getMean() Get the mean for the distribution.
| |
| getNumericalMean | back to summary |
|---|---|
| public double getNumericalMean() Implements org. Doc from org. Use this method to get the numerical value of the mean of this
distribution.
For mean parameter
| |
| getNumericalVariance | back to summary |
|---|---|
| public double getNumericalVariance() Implements org. Doc from org. Use this method to get the numerical value of the variance of this
distribution.
For mean parameter
| |
| getSupportLowerBound | back to summary |
|---|---|
| public int getSupportLowerBound() Implements org. Doc from org. Access the lower bound of the support. This method must return the same
value as
| |
| getSupportUpperBound | back to summary |
|---|---|
| public int getSupportUpperBound() Implements org. Doc from org. Access the upper bound of the support. This method must return the same
value as
Integer.MAX_VALUE.
| |
| isSupportConnected | back to summary |
|---|---|
| public boolean isSupportConnected() Implements org. Doc from org. Use this method to get information about whether the support is connected, i.e. whether all integers between the lower and upper bound of the support are included in the support. The support of this distribution is connected.
| |
| logProbability | back to summary |
|---|---|
| public double logProbability(int x) Overrides org. Doc from org. For a random variable
The default implementation simply computes the logarithm of
| |
| nextPoisson | back to summary |
|---|---|
private long nextPoisson(double meanPoisson)
| |
| normalApproximateProbability | back to summary |
|---|---|
| public double normalApproximateProbability(int x) Calculates the Poisson distribution function using a normal
approximation. The
| |
| probability | back to summary |
|---|---|
| public double probability(int x) Implements org. Doc from org. For a random variable
| |
| sample | back to summary |
|---|---|
| public int sample() Overrides org. Implements org. Doc from org. Generate a random value sampled from this distribution. The default implementation uses the inversion method. Algorithm Description:
| |