GestureRecognitionToolkit
Version: 0.2.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
LinearRegression.h
Go to the documentation of this file.
1
33
#ifndef GRT_LINEAR_REGRESSION_HEADER
34
#define GRT_LINEAR_REGRESSION_HEADER
35
36
#include "../../CoreModules/Regressifier.h"
37
38
GRT_BEGIN_NAMESPACE
39
40
class
GRT_API
LinearRegression
:
public
Regressifier
41
{
42
public
:
48
LinearRegression
(
bool
useScaling=
false
);
49
53
virtual
~
LinearRegression
(
void
);
54
61
LinearRegression
&operator=(
const
LinearRegression
&rhs);
62
70
virtual
bool
deepCopyFrom
(
const
Regressifier
*regressifier);
71
79
virtual
bool
train_
(
RegressionData
&trainingData);
80
88
virtual
bool
predict_
(
VectorFloat
&inputVector);
89
97
virtual
bool
save
( std::fstream &file )
const
;
98
106
virtual
bool
load
( std::fstream &file );
107
113
UINT getMaxNumIterations()
const
;
114
122
bool
setMaxNumIterations(
const
UINT maxNumIterations);
123
124
//Tell the compiler we are using the base class train method to stop hidden virtual function warnings
125
using
MLBase::save
;
126
using
MLBase::load
;
127
128
protected
:
129
bool
loadLegacyModelFromFile( std::fstream &file );
130
131
Float w0;
132
VectorFloat
w;
133
static
RegisterRegressifierModule< LinearRegression >
registerModule;
134
};
135
136
GRT_END_NAMESPACE
137
138
#endif //GRT_LINEAR_REGRESSION_HEADER
139
MLBase::predict_
virtual bool predict_(VectorFloat &inputVector)
Definition:
MLBase.cpp:115
Regressifier
Definition:
Regressifier.h:43
RegisterRegressifierModule< LinearRegression >
MLBase::save
virtual bool save(const std::string filename) const
Definition:
MLBase.cpp:143
Regressifier::deepCopyFrom
virtual bool deepCopyFrom(const Regressifier *regressifier)
Definition:
Regressifier.h:63
MLBase::load
virtual bool load(const std::string filename)
Definition:
MLBase.cpp:167
LinearRegression
Definition:
LinearRegression.h:40
VectorFloat
Definition:
VectorFloat.h:33
MLBase::train_
virtual bool train_(ClassificationData &trainingData)
Definition:
MLBase.cpp:91
RegressionData
Definition:
RegressionData.h:41
GRT
RegressionModules
LinearRegression
LinearRegression.h
Generated on Sun Aug 7 2016 19:16:04 for GestureRecognitionToolkit by
1.8.11