Exponential distribution. More...
#include <itpp/base/random.h>
Public Member Functions | |
| Exponential_RNG (double lambda=1.0) | |
| constructor. Set lambda. More... | |
| void | setup (double lambda) |
| Set lambda. More... | |
| double | get_setup () const |
| get lambda | |
| double | operator() () |
| Get one sample. More... | |
| vec | operator() (int n) |
| Get a sample vector. More... | |
| mat | operator() (int h, int w) |
| Get a sample matrix. More... | |
| itpp::Exponential_RNG::Exponential_RNG | ( | double | lambda = 1.0 | ) |
|
inline |
Set lambda.
Definition at line 411 of file random.h.
Referenced by Exponential_RNG(), itpp::randexp(), and itpp::Poisson_Packet_Generator::set_parameters().
|
inline |
| vec itpp::Exponential_RNG::operator() | ( | int | n | ) |
Get a sample vector.
Definition at line 371 of file random.cpp.
| mat itpp::Exponential_RNG::operator() | ( | int | h, |
| int | w | ||
| ) |
Get a sample matrix.
Definition at line 381 of file random.cpp.
Generated on Wed Mar 30 2022 00:00:00 for IT++ by Doxygen 1.9.3