Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
npstat::Poisson1D Class Reference
Inheritance diagram for npstat::Poisson1D:
Detailed DescriptionThe Poisson distribution. The calculations of cdf and quantiles, together with generation of random numbers, are implemented by constructing the cdf lookup table. Once such a table is constructed, calculations of this kind become pretty fast. Nevertheless, since construction of the complete cdf table takes some time (especially for large Poisson lambdas), one can imagine situations in which it may be more efficient to set up a Poisson process instead. For example, if you need to generate a few random numbers for many different values of lambda, you might be able to save some CPU time by following the Poisson process route. Member Function Documentation◆ cdf()
Cumulative distribution function Implements npstat::AbsDiscreteDistribution1D. ◆ classId()
Prototype needed for I/O Implements npstat::AbsDiscreteDistribution1D. ◆ clone()
"Virtual copy constructor" Implements npstat::AbsDiscreteDistribution1D. ◆ exceedance()
1 - cdf, implementations should avoid subtractive cancellation Implements npstat::AbsDiscreteDistribution1D. ◆ isEqual()
Comparison for equality. To be implemented by derived classes. Implements npstat::AbsDiscreteDistribution1D. ◆ probability()
Probability Implements npstat::AbsDiscreteDistribution1D. ◆ quantile()
The quantile function Implements npstat::AbsDiscreteDistribution1D. ◆ random()
Random number generator according to the given distribution. Should return the number of random points used up from the generator. Reimplemented from npstat::AbsDiscreteDistribution1D. The documentation for this class was generated from the following file: Generated by 1.9.1 |