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 | ) |
Set lambda.
Definition at line 411 of file random.h.
Referenced by Exponential_RNG(), 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.
Get a sample matrix.
Definition at line 381 of file random.cpp.
Generated on Tue Mar 26 2024 19:08:31 for IT++ by Doxygen 1.9.8