#include <itpp/base/random.h>
Public Member Functions | |
| Normal_RNG (double meanval, double variance) | |
| Constructor. Set mean and variance. | |
| Normal_RNG () | |
| 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 () |
| Get a Normal distributed (0,1) sample. | |
| void | sample_vector (int size, vec &out) |
| Get a Normal distributed (0,1) vector. | |
| void | sample_matrix (int rows, int cols, mat &out) |
| Get a Normal distributed (0,1) matrix. | |
Definition at line 404 of file random.h.
|
||||||||||||
|
Constructor. Set mean and variance.
Definition at line 407 of file random.h. References itpp::variance(). |
|
|
Constructor. Set mean and variance.
Definition at line 409 of file random.h. References itpp::mean(). |
|
||||||||||||
|
Set mean, and variance.
Definition at line 411 of file random.h. References itpp::mean(), itpp::sqrt(), and itpp::variance(). |
|
||||||||||||
|
Get mean and variance.
Definition at line 255 of file random.cpp. References itpp::variance(). |
|
|
Get one sample.
|
|
|
Get a sample vector.
|
|
||||||||||||
|
Get a sample matrix.
|
|
|
Get a Normal distributed (0,1) sample.
Definition at line 422 of file random.h. References itpp::sqrt(). |
|
||||||||||||
|
Get a Normal distributed (0,1) vector.
Definition at line 435 of file random.h. References itpp::Vec< Num_T >::set_size(), and itpp::size(). |
|
||||||||||||||||
|
Get a Normal distributed (0,1) matrix.
Definition at line 442 of file random.h. References itpp::Mat< Num_T >::set_size(). |
Generated on Fri Jan 11 08:17:31 2008 for IT++ by Doxygen 1.3.9.1