Gaussians.h
Go to the documentation of this file.
1 /*
2  * Gaussians.h
3  *
4  * Created on: Nov 19, 2011
5  * Author: Seungsu KIM
6  */
7 
8 #ifndef __GAUSSIANSM_H__
9 #define __GAUSSIANSM_H__
10 
11 #include "MathLib.h"
12 
13 #define GAUSSIAN_MAXIMUM_NUMBER 50
14 
15 struct GMMState
16 {
19  double Prio;
20 };
21 
22 struct GMMStateP
23 {
27  double detSigmaII;
28 
29  // for GMR
33 };
34 
35 struct GMMs
36 {
37  unsigned int nbStates;
38  unsigned int nbDim;
39 
41 };
42 
43 class Gaussians
44 {
45 private:
47 
48 public:
50 
51  Gaussians(const char* f_mu, const char* f_sigma, const char* f_prio);
52  Gaussians(int nbStates, int nbDim, const char* f_mu, const char* f_sigma, const char* f_prio);
53  Gaussians(const int nbStates,
54  const int nbDim,
55  const vector<double> pri_vec,
56  const vector<double> mu_vec,
57  const vector<double> sig_vec);
59 
60  void setGMMs(GMMs* model);
61 
62  // For fast computation of GaussianPDF
66  int nbDimI;
67 
68 
69  void InitFastGaussians(int first_inindex, int last_inindex);
70  double GaussianPDFFast(int state, MathLib::Vector x);
73 
74  void InitFastGMR(int first_inindex, int last_inindex, int first_outindex, int last_outindex);
75  void
76  Regression(const MathLib::Vector& indata, MathLib::Vector& outdata, MathLib::Matrix& derGMR);
77  void Regression(const MathLib::Vector& indata, MathLib::Vector& outdata);
79 };
80 /*
81 void GaussianMux(GMMs *modelK, GMMs *modelL, GMMs *modelOut);
82 void GaussianRotate(GMMs *model, Vector P, Matrix R, GMMs *modelOut);
83 */
84 
85 #endif //__GAUSSIANS_H__
Gaussians::GaussianProbFast
double GaussianProbFast(MathLib::Vector x)
Definition: Gaussians.cpp:267
Matrix
Eigen::Matrix< T, 3, 3 > Matrix
Definition: UnscentedKalmanFilterTest.cpp:37
GMMStateP::SigmaIOInv
MathLib::Matrix SigmaIOInv
Definition: Gaussians.h:32
Vector
Eigen::Matrix< T, 3, 1 > Vector
Definition: UnscentedKalmanFilterTest.cpp:36
Gaussians::gfDiff
MathLib::Vector gfDiff
Definition: Gaussians.h:63
Gaussians
Definition: Gaussians.h:43
Gaussians::gfDiffp
MathLib::Vector gfDiffp
Definition: Gaussians.h:63
GMMs::States
GMMState States[GAUSSIAN_MAXIMUM_NUMBER]
Definition: Gaussians.h:40
GMMStateP
Definition: Gaussians.h:22
GMMState::Mu
MathLib::Vector Mu
Definition: Gaussians.h:17
Gaussians::model
GMMs model
Definition: Gaussians.h:49
Gaussians::Gaussians
Gaussians(const char *f_mu, const char *f_sigma, const char *f_prio)
Definition: Gaussians.cpp:32
Gaussians::GaussianDerProbFast
MathLib::Vector GaussianDerProbFast(MathLib::Vector x)
Definition: Gaussians.cpp:278
GMMStateP::SigmaIIInv
MathLib::Matrix SigmaIIInv
Definition: Gaussians.h:26
Gaussians::nbDimI
int nbDimI
Definition: Gaussians.h:66
Gaussians::GaussianPDFFast
double GaussianPDFFast(int state, MathLib::Vector x)
Definition: Gaussians.cpp:254
GMMs
Definition: Gaussians.h:35
GMMs::nbDim
unsigned int nbDim
Definition: Gaussians.h:38
GMMStateP::SigmaIO
MathLib::Matrix SigmaIO
Definition: Gaussians.h:31
Gaussians::InitFastGMR
void InitFastGMR(int first_inindex, int last_inindex, int first_outindex, int last_outindex)
Definition: Gaussians.cpp:290
GMMState
Definition: Gaussians.h:15
Gaussians::gPdf
MathLib::Vector gPdf
Definition: Gaussians.h:65
GMMStateP::SigmaII
MathLib::Matrix SigmaII
Definition: Gaussians.h:25
GMMs::nbStates
unsigned int nbStates
Definition: Gaussians.h:37
Gaussians::InitFastGaussians
void InitFastGaussians(int first_inindex, int last_inindex)
Definition: Gaussians.cpp:212
Gaussians::setGMMs
void setGMMs(GMMs *model)
Definition: Gaussians.cpp:200
GMMStateP::detSigmaII
double detSigmaII
Definition: Gaussians.h:27
GMMState::Sigma
MathLib::Matrix Sigma
Definition: Gaussians.h:18
GAUSSIAN_MAXIMUM_NUMBER
#define GAUSSIAN_MAXIMUM_NUMBER
Definition: Gaussians.h:13
GMMStateP::MuI
MathLib::Vector MuI
Definition: Gaussians.h:24
Gaussians::gDer
MathLib::Vector gDer
Definition: Gaussians.h:64
GMMState::Prio
double Prio
Definition: Gaussians.h:19
GMMStateP::muO
MathLib::Vector muO
Definition: Gaussians.h:30
Gaussians::Regression
void Regression(const MathLib::Vector &indata, MathLib::Vector &outdata, MathLib::Matrix &derGMR)
Definition: Gaussians.cpp:348