25 Hypothesis::Hypothesis(
const double& timestamp,
double probability) : probability_(probability), timestamp_(timestamp),
26 parent_(0), assignment_set_(0), assignment_matrix_(0), height_(0), is_active_leaf_(true) {
134 list<const Assignment*> all_assignments;
143 it_ass = all_assignments.erase(it_ass);
149 it_ass = all_assignments.erase(it_ass);
167 it_ass = all_assignments.erase(it_ass);
181 assert(all_assignments.empty());
230 active_leafs.push_back(
this);
235 (*it)->findActiveLeafs(active_leafs);
271 (*it)->clearInactive();
280 (*it)->deleteChildren();
289 if (new_child != *it_child) {
AssignmentMatrix * getAssignmentMatrix() const
Hypothesis * determineBestLeaf()
static ObjectStorage & getInstance()
AssignmentMatrix * assignment_matrix_
const Hypothesis * getBestLeaf() const
void addPotentialAssignment(const Assignment &ass)
double getTimestamp() const
void clearAssignmentSet()
double getProbability() const
void setAssignments(AssignmentSet *assignments)
SemanticObject * getUpdatedObject() const
void getAllAssignments(std::list< const Assignment * > &assignments) const
iterator(field< oT > &in_M, const bool at_end=false)
std::list< Hypothesis * > children_
unsigned int getNumParentHypotheses() const
AssignmentType getType() const
void addObject(SemanticObject *obj)
const_iterator(const field< oT > &in_M, const bool at_end=false)
const SemanticObject * getTarget() const
const AssignmentSet * getAssignments() const
arma_warn_unused eT max() const
void removeFromHypothesis(Hypothesis *hyp)
double calculateBranchProbabilities()
int getNumObjects() const
AssignmentSet * assignment_set_
SemanticObject * getNewObject() const
void findActiveLeafs(std::list< Hypothesis * > &active_leafs)
Hypothesis * deleteSinglePaths()
void setProbability(double prob)
void addPotentialAssignment(Assignment *assignment)
std::list< Hypothesis * > & getChildHypotheses()
const std::list< SemanticObject * > & getObjects() const
void addChildHypothesis(Hypothesis *h)
const Hypothesis * getParent() const
void removeObject(SemanticObject &obj)
void addToHypothesis(Hypothesis *hyp)
std::list< SemanticObject * > objects_