Public Member Functions | Private Member Functions | Private Attributes | List of all members
ASR::Gaussian Class Reference

#include <Gaussian.h>

Public Member Functions

 Gaussian (double mean, double variance)
 
float sampleRandomValue ()
 
void sampleRandomValues (std::vector< float > &v, int n)
 

Private Member Functions

void test ()
 

Private Attributes

double mean
 
double var
 

Detailed Description

Definition at line 31 of file Gaussian.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

double ASR::Gaussian::mean
private

Definition at line 34 of file Gaussian.h.

double ASR::Gaussian::var
private

Definition at line 35 of file Gaussian.h.


The documentation for this class was generated from the following file:


asr_recognizer_prediction_psm
Author(s): Braun Kai, Meißner Pascal
autogenerated on Wed Feb 19 2020 03:31:30