51 unsigned int numberOfFilledSlots = 0;
53 double probability = 1.0;
57 if(pAssignments[0] > 0)
60 for(
unsigned int slot = 0; slot <
mMappedTable->getNumberOfRows(); slot++)
63 unsigned int part = pAssignments[slot];
71 probability *=
mMappedTable->getProbability(slot, pEvidenceList[part - 1].type);
74 numberOfFilledSlots++;
AppearanceTermEvaluator()
unsigned int getNumberOfSlots()
double calculateProbabilityForHypothesis(std::vector< ISM::Object > pEvidenceList, std::vector< unsigned int > pAssignments)
void load(boost::property_tree::ptree &pPt)
void visualize(std::vector< ISM::Object > pEvidenceList)
~AppearanceTermEvaluator()
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticPrimarySceneObjectVisualization > mSuperior)
boost::shared_ptr< MappedProbabilityTable > mMappedTable