Implements a Poisson distribution with parameter mean.
More...
#include <shark/Rng/Poisson.h>
|
| Poisson (RngType &rng, double mean=0.01) |
| C'tor taking parameter mean as argument. Associates the distribution with supplied RNG. More...
|
|
double | operator() (double mean) |
| Adjusts the parameter mean and samples the distribution. More...
|
|
double | mean () const |
| Accesses the parameter mean. More...
|
|
void | mean (double newMean) |
| Adjusts the parameter mean. More...
|
|
double | p (double x) const |
| Calculates the probability of x >= 0. More...
|
|
template<typename RngType = shark::DefaultRngType>
class shark::Poisson< RngType >
Implements a Poisson distribution with parameter mean.
Definition at line 46 of file Poisson.h.
§ Poisson()
template<typename RngType = shark::DefaultRngType>
C'tor taking parameter mean as argument. Associates the distribution with supplied RNG.
Definition at line 57 of file Poisson.h.
§ mean() [1/2]
template<typename RngType = shark::DefaultRngType>
§ mean() [2/2]
template<typename RngType = shark::DefaultRngType>
Adjusts the parameter mean.
Definition at line 87 of file Poisson.h.
§ operator()()
template<typename RngType = shark::DefaultRngType>
Adjusts the parameter mean and samples the distribution.
- Parameters
-
Definition at line 70 of file Poisson.h.
§ p()
template<typename RngType = shark::DefaultRngType>
The documentation for this class was generated from the following file: