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);
64 unsigned long getMemoryUsed()
const;
67 cv::Mat updatePrediction(
const cv::Mat & oldPrediction,
69 const std::vector<int> & oldIds,
70 const std::vector<int> & newIds);
71 void updatePosterior(
const Memory * memory,
const std::vector<int> & likelihoodIds);
72 void normalize(cv::Mat & prediction,
unsigned int index,
float addedProbabilitiesSum,
bool virtualPlaceUsed)
const;
float _totalPredictionLCValues
bool _fullPredictionUpdate
std::map< std::string, std::string > ParametersMap
GLM_FUNC_DECL genType normalize(genType const &x)
std::map< int, std::map< int, int > > _neighborsIndex
const std::map< int, float > & getPosterior() const
std::map< int, float > _posterior
std::vector< double > _predictionLC
float getVirtualPlacePrior() const