#include <Gaussian.h>
Definition at line 31 of file Gaussian.h.
ASR::Gaussian::Gaussian |
( |
double |
mean, |
|
|
double |
variance |
|
) |
| |
|
inline |
Creates a Gaussian-Kernel with the given parameters
- Parameters
-
mean | - the mean of the gaussian kernel |
variance | - the variance of the gaussian kernel |
Definition at line 45 of file Gaussian.h.
float ASR::Gaussian::sampleRandomValue |
( |
| ) |
|
|
inline |
Samples one random number from the gaussian. Values near the mean are the most likely
- Returns
- a random value
Definition at line 57 of file Gaussian.h.
void ASR::Gaussian::sampleRandomValues |
( |
std::vector< float > & |
v, |
|
|
int |
n |
|
) |
| |
|
inline |
Samples n random values from the gaussian and stores them in a given vector.
- Parameters
-
v | - the output vector that gains the generated values |
number | - the number of values that should be generated |
Definition at line 74 of file Gaussian.h.
void ASR::Gaussian::test |
( |
| ) |
|
|
inlineprivate |
A method for testing the random number generator – Only for testing –
Definition at line 99 of file Gaussian.h.
double ASR::Gaussian::mean |
|
private |
double ASR::Gaussian::var |
|
private |
The documentation for this class was generated from the following file: