#include <itpp/base/random.h>
Public Member Functions | |
Laplace_RNG (double meanval=0.0, double variance=1.0) | |
Constructor. Set mean and variance. | |
void | setup (double meanval, double variance) |
Set mean and variance. | |
void | get_setup (double &meanval, double &variance) const |
Get mean and variance. | |
double | operator() () |
Get one sample. | |
vec | operator() (int n) |
Get a sample vector. | |
mat | operator() (int h, int w) |
Get a sample matrix. | |
double | sample () |
Returns a single sample. |
Definition at line 461 of file random.h.
itpp::Laplace_RNG::Laplace_RNG | ( | double | meanval = 0.0 , |
|
double | variance = 1.0 | |||
) |
void itpp::Laplace_RNG::setup | ( | double | meanval, | |
double | variance | |||
) |
void itpp::Laplace_RNG::get_setup | ( | double & | meanval, | |
double & | variance | |||
) | const |
double itpp::Laplace_RNG::operator() | ( | ) | [inline] |
vec itpp::Laplace_RNG::operator() | ( | int | n | ) |
mat itpp::Laplace_RNG::operator() | ( | int | h, | |
int | w | |||
) |
double itpp::Laplace_RNG::sample | ( | ) | [inline] |
Returns a single sample.
Definition at line 476 of file random.h.
References itpp::log(), itpp::Random_Generator::random_01(), and itpp::sqrt().
Referenced by operator()().
Generated on Wed Mar 21 12:22:21 2007 for IT++ by Doxygen 1.4.7