GestureRecognitionToolkit
Version: 1.0 Revision: 04-03-15
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
ANBC_Model.h
Go to the documentation of this file.
1
31
#ifndef GRT_ANBC_MODEL_HEADER
32
#define GRT_ANBC_MODEL_HEADER
33
34
#include "../../Util/GRTCommon.h"
35
36
namespace
GRT
{
37
38
class
ANBC_Model
{
39
public
:
40
ANBC_Model
(
void
){ N=0; classLabel = 0; gamma=2.0; threshold=0.0; trainingMu=0.0; trainingSigma=0.0;};
41
~
ANBC_Model
(
void
){};
42
43
bool
train(UINT classLabel,
MatrixDouble
&trainingData,VectorDouble &weightsVector);
44
double
predict(
const
VectorDouble &observation);
45
double
predictUnnormed(
const
VectorDouble &x);
46
inline
double
gauss(
const
double
x,
const
double
mu,
const
double
sigma);
47
inline
double
unnormedGauss(
const
double
x,
const
double
mu,
const
double
sigma);
48
void
recomputeThresholdValue(
const
double
gamma);
49
50
public
:
51
inline
double
SQR(
double
x){
return
x*x; }
52
53
UINT N;
//The number of dimensions in the problem
54
UINT classLabel;
//The label of the class this model represents
55
double
threshold;
//The classification threshold value
56
double
gamma;
//The number of standard deviations to use for the threshold
57
double
trainingMu;
//The average confidence value in the training data
58
double
trainingSigma;
//The simga confidence value in the training data
59
VectorDouble mu;
//A vector to hold the mean values for each dimension
60
VectorDouble sigma;
//A vector to hold the sigma values for each dimension
61
VectorDouble weights;
//A vector to hold the weights for each dimension
62
};
63
64
}
//End of namespace GRT
65
66
#endif //GRT_ANBC_MODEL_HEADER
GRT::ANBC_Model
Definition:
ANBC_Model.h:38
GRT
Definition:
AdaBoost.cpp:25
GRT::MatrixDouble
Definition:
MatrixDouble.h:42
ngillian
Documents
dev
libs
grt
GRT
ClassificationModules
ANBC
ANBC_Model.h
Generated on Wed Mar 4 2015 12:47:18 for GestureRecognitionToolkit by
1.8.9.1