#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.
|
|
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(), and itpp::sqrt(). |
|
Get mean and variance.
Definition at line 255 of file random.cpp. |
|
Get one sample.
Definition at line 416 of file random.h. References itpp::mean(). |
|
Get a sample vector.
Definition at line 418 of file random.h. References itpp::mean(). |
|
Get a sample matrix.
Definition at line 420 of file random.h. References itpp::mean(). |
|
Get a Normal distributed (0,1) sample.
Definition at line 422 of file random.h. References itpp::log(), and itpp::sqrt(). Referenced by itpp::randn(). |
|
Get a Normal distributed (0,1) vector.
Definition at line 435 of file random.h. References itpp::Vec< Num_T >::set_size(). Referenced by itpp::randn(). |
|
Get a Normal distributed (0,1) matrix.
Definition at line 442 of file random.h. References itpp::Mat< Num_T >::set_size(). Referenced by itpp::randn(). |
Generated on Thu Apr 19 14:24:02 2007 for IT++ by Doxygen 1.4.6