List of all members.
Public Member Functions |
| discrete (const std::vector< double > &p) |
double | pdf (const int) const |
double | cdf (const int) const |
int | random () const |
Detailed Description
A discrete random number generator.
Constructor & Destructor Documentation
discrete::discrete |
( |
const std::vector< double > & |
p |
) |
|
Member Function Documentation
double discrete::cdf |
( |
const int |
k |
) |
const |
double discrete::pdf |
( |
const int |
k |
) |
const |
int discrete::random |
( |
|
) |
const [virtual] |
The documentation for this class was generated from the following files:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/simulator.h
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/simulator.cc