$search
#include <gaussian.h>
Public Member Functions | |
gaussian (float, float) | |
gaussian () | |
float | get_sample_1D () |
Private Attributes | |
float | _mean1 |
bool | _ready |
float | _std1 |
float | _var1 |
Definition at line 22 of file gaussian.h.
gaussian::gaussian | ( | ) |
This constructor is basically here in order to declare variables in other classes.
mean = variance = 0
Definition at line 21 of file gaussian.cc.
gaussian::gaussian | ( | float | mean, | |
float | var | |||
) |
Initialize a univariate Gaussian with a mean and variance.
Definition at line 29 of file gaussian.cc.
float gaussian::get_sample_1D | ( | ) |
Returns a sample from a univariate Gaussian.
If the Gaussian was initialized as a multivariate, it returns a sample using the first dimension of the mean vector and the first element (0,0) of the covariance matrix as the variance.
Definition at line 43 of file gaussian.cc.
float gaussian::_mean1 [private] |
Definition at line 31 of file gaussian.h.
bool gaussian::_ready [private] |
Definition at line 29 of file gaussian.h.
float gaussian::_std1 [private] |
Definition at line 31 of file gaussian.h.
float gaussian::_var1 [private] |
Definition at line 31 of file gaussian.h.