26 #ifndef GRT_FINITE_STATE_MACHINE_HEADER 27 #define GRT_FINITE_STATE_MACHINE_HEADER 29 #include "../../CoreModules/Classifier.h" 31 #include "../../ClusteringModules/KMeans/KMeans.h" 43 FiniteStateMachine(
const UINT numParticles = 200,
const UINT numClustersPerState = 20,
const Float stateTransitionSmoothingCoeff = 0.0,
const Float measurementNoise = 10.0);
119 virtual bool reset();
127 virtual bool clear();
135 virtual bool print()
const;
144 virtual bool save( std::fstream &file )
const;
153 virtual bool load( std::fstream &file );
156 bool setNumParticles(
const UINT numParticles);
157 bool setNumClustersPerState(
const UINT numClustersPerState);
158 bool setStateTransitionSmoothingCoeff(
const Float stateTransitionSmoothingCoeff);
159 bool setMeasurementNoise(
const Float measurementNoise);
166 static std::string
getId();
177 bool initParticles();
180 UINT numClustersPerState;
181 Float stateTransitionSmoothingCoeff;
182 Float measurementNoise;
191 static const std::string id;
std::string getId() const
virtual bool predict_(VectorFloat &inputVector)
virtual bool save(const std::string &filename) const
virtual bool deepCopyFrom(const Classifier *classifier)
virtual bool print() const
Vector< Vector< IndexedDouble > > pt
This stores the stateTransitions matrix in a format more efficient for the particle filter...
virtual bool train_(ClassificationData &trainingData)
Vector< Vector< VectorFloat > > pe
This stores the stateEmissions model in a format more efficient for the particle filter.
virtual bool load(const std::string &filename)
This is the main base class that all GRT Classification algorithms should inherit from...