54 unsigned int numberOfHypotheses = 0;
57 unsigned int numberOfSceneObjects = pEvidenceList.size();
60 for(
unsigned int i = 1; i < ((
unsigned int) 1 << numberOfSceneObjects); ++i)
66 double hypothesisProbability = 1.0;
69 unsigned int numberOfElementsInSubset = 0;
72 for(
unsigned int j = 0; j < numberOfSceneObjects; ++j)
76 numberOfElementsInSubset++;
80 for(
unsigned int j = 0; j < numberOfSceneObjects; ++j)
86 subset +=
"(" + boost::lexical_cast<std::string>(j) +
") ";
97 ROS_INFO_STREAM(
"Score for scene object subset '" << subset <<
"' is '" << hypothesisProbability <<
"'.");
104 numberOfHypotheses++;
108 if(numberOfHypotheses > 0)
~PowerSetBackgroundInferenceAlgorithm()
void doInference(std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)
PowerSetBackgroundInferenceAlgorithm()
#define ROS_INFO_STREAM(args)
double calculateProbabilityOfBackgroundSceneObject(unsigned int pNumberOfEvidence, unsigned int pNumberOfSlots)