Exponential distribution. More...
#include <itpp/base/random.h>
Public Member Functions | |
| Exponential_RNG (double lambda=1.0) | |
| constructor. Set lambda. | |
| void | setup (double lambda) |
| Set lambda. | |
| double | get_setup () const |
| get lambda | |
| double | operator() () |
| Get one sample. | |
| vec | operator() (int n) |
| Get a sample vector. | |
| mat | operator() (int h, int w) |
| Get a sample matrix. | |
| 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 Tue Dec 10 2024 04:49:37 for IT++ by Doxygen 1.12.0