#include <KnowledgeDatabase.h>
Public Member Functions | |
void | addClassModel (const std::string &class_name, ClassModel *model) |
const pbl::PMF & | getClassDistribution () const |
const ClassModel * | getClassModel (const std::string &class_name) const |
const std::map< std::string, ClassModel * > & | getClassModels () const |
const PropertySet & | getClutterPDFs (const std::string &class_name) const |
const IStateEstimator * | getEstimator (const std::string &class_name, const Attribute &attribute) const |
const PropertySet & | getNewPDFs (const std::string &class_name) const |
double | getPriorClutter () const |
double | getPriorExisting () const |
double | getPriorNew () const |
double | getProbabilityClutter (const Evidence &z) |
double | getProbabilityExisting (const Evidence &z, const SemanticObject &obj) |
double | getProbabilityNew (const Evidence &z) |
std::vector< Property > | inferProperties (const PropertySet &prop_set, std::vector< Attribute >) const |
void | setPriorClutter (double prior_clutter) |
void | setPriorExisting (double prior_existing) |
void | setPriorNew (double prior_new) |
virtual | ~KnowledgeDatabase () |
Static Public Member Functions | |
static KnowledgeDatabase & | getInstance () |
Protected Member Functions | |
KnowledgeDatabase () | |
Protected Attributes | |
std::map< std::string, ClassModel * > | class_models_ |
pbl::PMF | class_pmf_ |
double | prior_clutter_ |
double | prior_existing_ |
double | prior_new_ |
Static Protected Attributes | |
static KnowledgeDatabase * | instance_ = 0 |
Definition at line 21 of file KnowledgeDatabase.h.
|
virtual |
Definition at line 28 of file KnowledgeDatabase.cpp.
|
protected |
Definition at line 24 of file KnowledgeDatabase.cpp.
void mhf::KnowledgeDatabase::addClassModel | ( | const std::string & | class_name, |
ClassModel * | model | ||
) |
Definition at line 34 of file KnowledgeDatabase.cpp.
const pbl::PMF & mhf::KnowledgeDatabase::getClassDistribution | ( | ) | const |
Definition at line 50 of file KnowledgeDatabase.cpp.
const ClassModel * mhf::KnowledgeDatabase::getClassModel | ( | const std::string & | class_name | ) | const |
Definition at line 82 of file KnowledgeDatabase.cpp.
const std::map< std::string, ClassModel * > & mhf::KnowledgeDatabase::getClassModels | ( | ) | const |
Definition at line 78 of file KnowledgeDatabase.cpp.
const PropertySet & mhf::KnowledgeDatabase::getClutterPDFs | ( | const std::string & | class_name | ) | const |
Definition at line 42 of file KnowledgeDatabase.cpp.
const IStateEstimator * mhf::KnowledgeDatabase::getEstimator | ( | const std::string & | class_name, |
const Attribute & | attribute | ||
) | const |
Definition at line 46 of file KnowledgeDatabase.cpp.
|
static |
Definition at line 16 of file KnowledgeDatabase.cpp.
const PropertySet & mhf::KnowledgeDatabase::getNewPDFs | ( | const std::string & | class_name | ) | const |
Definition at line 38 of file KnowledgeDatabase.cpp.
double mhf::KnowledgeDatabase::getPriorClutter | ( | ) | const |
Definition at line 74 of file KnowledgeDatabase.cpp.
double mhf::KnowledgeDatabase::getPriorExisting | ( | ) | const |
Definition at line 70 of file KnowledgeDatabase.cpp.
double mhf::KnowledgeDatabase::getPriorNew | ( | ) | const |
Definition at line 66 of file KnowledgeDatabase.cpp.
double mhf::KnowledgeDatabase::getProbabilityClutter | ( | const Evidence & | z | ) |
Definition at line 134 of file KnowledgeDatabase.cpp.
double mhf::KnowledgeDatabase::getProbabilityExisting | ( | const Evidence & | z, |
const SemanticObject & | obj | ||
) |
Definition at line 174 of file KnowledgeDatabase.cpp.
double mhf::KnowledgeDatabase::getProbabilityNew | ( | const Evidence & | z | ) |
Definition at line 94 of file KnowledgeDatabase.cpp.
vector< Property > mhf::KnowledgeDatabase::inferProperties | ( | const PropertySet & | prop_set, |
std::vector< Attribute > | |||
) | const |
Definition at line 186 of file KnowledgeDatabase.cpp.
void mhf::KnowledgeDatabase::setPriorClutter | ( | double | prior_clutter | ) |
Definition at line 62 of file KnowledgeDatabase.cpp.
void mhf::KnowledgeDatabase::setPriorExisting | ( | double | prior_existing | ) |
Definition at line 58 of file KnowledgeDatabase.cpp.
void mhf::KnowledgeDatabase::setPriorNew | ( | double | prior_new | ) |
Definition at line 54 of file KnowledgeDatabase.cpp.
|
protected |
Definition at line 77 of file KnowledgeDatabase.h.
|
protected |
Definition at line 75 of file KnowledgeDatabase.h.
|
staticprotected |
Definition at line 67 of file KnowledgeDatabase.h.
|
protected |
Definition at line 73 of file KnowledgeDatabase.h.
|
protected |
Definition at line 71 of file KnowledgeDatabase.h.
|
protected |
Definition at line 69 of file KnowledgeDatabase.h.