27 #ifndef GRT_FINITE_STATE_MACHINE_HEADER
28 #define GRT_FINITE_STATE_MACHINE_HEADER
30 #include "../../CoreModules/Classifier.h"
32 #include "../../ClusteringModules/KMeans/KMeans.h"
44 FiniteStateMachine(
const UINT numParticles = 200,
const UINT numClustersPerState = 20,
const Float stateTransitionSmoothingCoeff = 0.0,
const Float measurementNoise = 10.0);
120 virtual bool reset();
128 virtual bool clear();
136 virtual bool print()
const;
157 bool setNumParticles(
const UINT numParticles);
158 bool setNumClustersPerState(
const UINT numClustersPerState);
159 bool setStateTransitionSmoothingCoeff(
const Float stateTransitionSmoothingCoeff);
160 bool setMeasurementNoise(
const Float measurementNoise);
173 bool initParticles();
176 UINT numClustersPerState;
177 Float stateTransitionSmoothingCoeff;
178 Float measurementNoise;
virtual bool predict(VectorFloat inputVector)
virtual bool predict_(VectorFloat &inputVector)
FiniteStateMachine(const UINT numParticles=200, const UINT numClustersPerState=20, const Float stateTransitionSmoothingCoeff=0.0, const Float measurementNoise=10.0)
virtual bool train(ClassificationData trainingData)
virtual bool print() const
virtual ~FiniteStateMachine(void)
virtual bool saveModelToFile(std::string filename) const
virtual bool deepCopyFrom(const Classifier *classifier)
Vector< Vector< IndexedDouble > > pt
This stores the stateTransitions matrix in a format more efficient for the particle filter...
virtual bool loadModelFromFile(std::string filename)
virtual bool train_(ClassificationData &trainingData)
virtual bool saveModelToFile(std::fstream &file) const
virtual bool train_(ClassificationData &trainingData)
virtual bool predict_(VectorFloat &inputVector)
Vector< Vector< VectorFloat > > pe
This stores the stateEmissions model in a format more efficient for the particle filter.
virtual bool loadModelFromFile(std::fstream &file)
FiniteStateMachine & operator=(const FiniteStateMachine &rhs)