55 if(pAssignments[0] > 0)
58 unsigned int numberOfFilledSlots = 0;
61 for(
unsigned int slot = 0; slot <
mTable->getNumberOfRows(); slot++)
64 unsigned int part = std::min(pAssignments[slot], (
unsigned int) 1);
67 result *=
mTable->getProbability(slot, part);
70 if(pAssignments[slot] > 0)
71 numberOfFilledSlots++;
89 return mTable->getNumberOfRows();
unsigned int getNumberOfSlots()
~OcclusionTermEvaluator()
void load(boost::property_tree::ptree &pPt)
boost::shared_ptr< ProbabilityTable > mTable
double calculateProbabilityForHypothesis(std::vector< ISM::Object > pEvidenceList, std::vector< unsigned int > pAssignments)
void visualize(std::vector< ISM::Object > pEvidenceList)
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticPrimarySceneObjectVisualization > mSuperior)