#include <MultidimensionalGaussian.h>
This contains only one Gaussian.
Definition at line 41 of file MultidimensionalGaussian.h.
ASR::MultidimensionalGaussian::MultidimensionalGaussian |
( |
std::vector< float > |
means, |
|
|
MatrixXf |
covariance |
|
) |
| |
|
inline |
Creates a multidimensional Gaussian-Kernel with the given parameters. The dimension of the means vector has to be the same as the covariance matrix.
- Parameters
-
means | - the means of the gaussian kernels |
covariance | - the covariance matrix of the gaussian kernel |
Definition at line 57 of file MultidimensionalGaussian.h.
std::vector<float> ASR::MultidimensionalGaussian::getMean |
( |
| ) |
|
|
inline |
MatrixXf ASR::MultidimensionalGaussian::initMatrixXf |
( |
std::vector< float > |
values, |
|
|
unsigned int |
rows, |
|
|
unsigned int |
cols |
|
) |
| |
|
inlineprivate |
Inits a Eigen::MatrixXf with the given values. a list with the values the Eigen::VectorXf with the given values and dimension
Definition at line 127 of file MultidimensionalGaussian.h.
void ASR::MultidimensionalGaussian::initVectorFromCSVString |
( |
std::vector< float > & |
x, |
|
|
std::string |
csv |
|
) |
| |
|
inlineprivate |
Inits a vector<float> with the given values. The given values have to be COMMA SEPERATED e.g. 1,2,3,4
- Parameters
-
a | csv string with the values the std::vector<float> with the given values and dimension |
Definition at line 149 of file MultidimensionalGaussian.h.
VectorXf ASR::MultidimensionalGaussian::initVectorXf |
( |
std::vector< float > |
values | ) |
|
|
inlineprivate |
Inits a Eigen::VectorXf with the given values. a list with the values the Eigen::VectorXf with the given values and dimension
Definition at line 111 of file MultidimensionalGaussian.h.
void ASR::MultidimensionalGaussian::sampleRandomValues |
( |
std::vector< float > & |
x | ) |
|
|
inline |
Samples a random vector from the gmm and stores them in a given vector. There are sampled dimension of means (given in the constructor) values.
- Parameters
-
x | - the output vector that gains the generated random values. |
Definition at line 78 of file MultidimensionalGaussian.h.
void ASR::MultidimensionalGaussian::test |
( |
| ) |
|
|
inlineprivate |
MatrixXf ASR::MultidimensionalGaussian::covariance |
|
private |
int ASR::MultidimensionalGaussian::dimension |
|
private |
MatrixXf ASR::MultidimensionalGaussian::L |
|
private |
std::vector<float> ASR::MultidimensionalGaussian::means |
|
private |
The documentation for this class was generated from the following file: