Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mhf::HypothesisTree Class Reference

#include <HypothesesTree.h>

Public Member Functions

void addEvidence (const EvidenceSet &ev_set)
const std::list< SemanticObject * > & getAllObjects () const
int getHeight () const
const std::list< Hypothesis * > & getHypotheses () const
const HypothesisgetMAPHypothesis () const
const std::list< SemanticObject * > & getMAPObjects () const
 HypothesisTree (int num_max_hyps, double max_min_prob_ratio)
void showStatistics ()
virtual ~HypothesisTree ()

Protected Member Functions

void applyAssignments ()
void expandTree (const EvidenceSet &ev_set)
void normalizeProbabilities ()
void pruneTree (const Time &timestamp)

Protected Attributes

std::list< Hypothesis * > leafs_
double max_min_prob_ratio_
long n_updates_
unsigned int num_max_hyps_
double t_last_update_
int tree_height_

Detailed Description

Definition at line 75 of file HypothesesTree.h.

Constructor & Destructor Documentation

mhf::HypothesisTree::HypothesisTree ( int  num_max_hyps,
double  max_min_prob_ratio 

Definition at line 42 of file HypothesesTree.cpp.

mhf::HypothesisTree::~HypothesisTree ( )

Definition at line 54 of file HypothesesTree.cpp.

Member Function Documentation

void mhf::HypothesisTree::addEvidence ( const EvidenceSet ev_set)

Definition at line 63 of file HypothesesTree.cpp.

void mhf::HypothesisTree::applyAssignments ( )

Definition at line 118 of file HypothesesTree.cpp.

void mhf::HypothesisTree::expandTree ( const EvidenceSet ev_set)

Definition at line 130 of file HypothesesTree.cpp.

const std::list<SemanticObject*>& mhf::HypothesisTree::getAllObjects ( ) const
int mhf::HypothesisTree::getHeight ( ) const

Definition at line 381 of file HypothesesTree.cpp.

const std::list< Hypothesis * > & mhf::HypothesisTree::getHypotheses ( ) const

Definition at line 377 of file HypothesesTree.cpp.

const Hypothesis & mhf::HypothesisTree::getMAPHypothesis ( ) const

Definition at line 386 of file HypothesesTree.cpp.

const std::list< SemanticObject * > & mhf::HypothesisTree::getMAPObjects ( ) const

Definition at line 390 of file HypothesesTree.cpp.

void mhf::HypothesisTree::normalizeProbabilities ( )

Definition at line 269 of file HypothesesTree.cpp.

void mhf::HypothesisTree::pruneTree ( const Time timestamp)

Definition at line 284 of file HypothesesTree.cpp.

void mhf::HypothesisTree::showStatistics ( )

Definition at line 400 of file HypothesesTree.cpp.

Member Data Documentation

std::list<Hypothesis*> mhf::HypothesisTree::leafs_

Definition at line 114 of file HypothesesTree.h.

Hypothesis* mhf::HypothesisTree::MAP_hypothesis_

Definition at line 116 of file HypothesesTree.h.

double mhf::HypothesisTree::max_min_prob_ratio_

ratio between max and min hypothesis probability

Definition at line 127 of file HypothesesTree.h.

long mhf::HypothesisTree::n_updates_

Definition at line 118 of file HypothesesTree.h.

unsigned int mhf::HypothesisTree::num_max_hyps_

Definition at line 124 of file HypothesesTree.h.

Hypothesis* mhf::HypothesisTree::root_

Definition at line 112 of file HypothesesTree.h.

double mhf::HypothesisTree::t_last_update_

Definition at line 120 of file HypothesesTree.h.

int mhf::HypothesisTree::tree_height_

Definition at line 122 of file HypothesesTree.h.

The documentation for this class was generated from the following files:

Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Fri Apr 16 2021 02:32:27