Laplacian distribution. More...
#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. | |
| itpp::Laplace_RNG::Laplace_RNG | ( | double | meanval = 0.0, |
| double | variance = 1.0 ) |
Constructor. Set mean and variance.
Definition at line 725 of file random.cpp.
References setup(), and itpp::variance().
| void itpp::Laplace_RNG::setup | ( | double | meanval, |
| double | variance ) |
Set mean and variance.
Definition at line 730 of file random.cpp.
References itpp::variance().
Referenced by Laplace_RNG().
| void itpp::Laplace_RNG::get_setup | ( | double & | meanval, |
| double & | variance ) const |
|
inline |
| vec itpp::Laplace_RNG::operator() | ( | int | n | ) |
| mat itpp::Laplace_RNG::operator() | ( | int | h, |
| int | w ) |
|
inline |
Returns a single sample.
Definition at line 561 of file random.h.
References itpp::mean().
Referenced by operator()(), and operator()().
Generated on Tue Dec 10 2024 04:49:37 for IT++ by Doxygen 1.12.0