21 #ifndef GRT_PARTICLE_CLASSIFIER_HEADER 22 #define GRT_PARTICLE_CLASSIFIER_HEADER 24 #include "../../CoreModules/Classifier.h" 25 #include "ParticleClassifierParticleFilter.h" 36 ParticleClassifier(
const unsigned int numParticles = 2000,
const Float sensorNoise = 20.0,
const Float transitionSigma = 0.005,
const Float phaseSigma = 0.1,
const Float velocitySigma = 0.01);
94 virtual bool save( std::fstream &file )
const;
103 virtual bool load( std::fstream &file );
110 virtual bool clear();
117 virtual bool reset();
124 static std::string
getId();
134 Float getVelocity()
const;
136 bool setNumParticles(
const unsigned int numParticles);
138 bool setSensorNoise(
const unsigned int sensorNoise);
140 bool setTransitionSigma(
const unsigned int transitionSigma);
142 bool setPhaseSigma(
const unsigned int phaseSigma);
144 bool setVelocitySigma(
const unsigned int velocitySigma);
150 unsigned int numParticles;
152 Float transitionSigma;
158 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 train_(ClassificationData &trainingData)
virtual bool load(const std::string &filename)
This is the main base class that all GRT Classification algorithms should inherit from...