28 #ifndef BAYESFILTER_H_ 29 #define BAYESFILTER_H_ 33 #include <opencv2/core/core.hpp> 49 virtual void parseParameters(
const ParametersMap & parameters);
50 const std::map<int, float> & computePosterior(
const Memory * memory,
const std::map<int, float> & likelihood);
54 void setPredictionLC(
const std::string & prediction);
57 const std::map<int, float> &
getPosterior()
const {
return _posterior;}
59 const std::vector<double> & getPredictionLC()
const;
60 std::string getPredictionLCStr()
const;
62 cv::Mat generatePrediction(
const Memory * memory,
const std::vector<int> & ids);
65 cv::Mat updatePrediction(
const cv::Mat & oldPrediction,
67 const std::vector<int> & oldIds,
68 const std::vector<int> & newIds);
69 void updatePosterior(
const Memory * memory,
const std::vector<int> & likelihoodIds);
70 void normalize(cv::Mat & prediction,
unsigned int index,
float addedProbabilitiesSum,
bool virtualPlaceUsed)
const;
float _totalPredictionLCValues
bool _fullPredictionUpdate
float getVirtualPlacePrior() const
std::map< std::string, std::string > ParametersMap
const std::map< int, float > & getPosterior() const
GLM_FUNC_DECL genType normalize(genType const &x)
std::map< int, std::map< int, int > > _neighborsIndex
std::map< int, float > _posterior
std::vector< double > _predictionLC