#include <DecisionTree.h>
Public Member Functions | |
DecisionTree () | |
DecisionTree (std::string strFile) | |
Property * | evaluate (CKeyValuePair *ckvpFeatures) |
std::vector< Property * > | findBranchesWithResult (Property *prTargetResult, Property *prStart=NULL) |
vector< CKeyValuePair * > | invert (Property *prTargetResult, CKeyValuePair *ckvpFeatures) |
bool | load (std::string strFile) |
bool | relationSatisfied (Property *prRelation, CKeyValuePair *ckvpFeatures) |
std::vector< Property * > | straightenResultBranch (Property *prSolutionBranch) |
std::vector< std::vector < Property * > > | straightenResultBranches (std::vector< Property * > vecSolutionBranches) |
~DecisionTree () | |
Protected Member Functions | |
Property * | evaluate (Property *prTree, CKeyValuePair *ckvpFeatures) |
void | init (std::string strMessagePrefix="", std::string strFile="") |
void | missingFeature (std::string strOperator, std::string strFeatureName) |
void | missingOperand (std::string strOperator) |
Private Attributes | |
JSON * | m_jsnDecisionTree |
Definition at line 58 of file DecisionTree.h.
Definition at line 44 of file DecisionTree.cpp.
beliefstate::DecisionTree::DecisionTree | ( | std::string | strFile | ) |
Definition at line 48 of file DecisionTree.cpp.
Definition at line 52 of file DecisionTree.cpp.
Property * beliefstate::DecisionTree::evaluate | ( | Property * | prTree, |
CKeyValuePair * | ckvpFeatures | ||
) | [protected] |
Definition at line 243 of file DecisionTree.cpp.
Property * beliefstate::DecisionTree::evaluate | ( | CKeyValuePair * | ckvpFeatures | ) |
Definition at line 89 of file DecisionTree.cpp.
std::vector< Property * > beliefstate::DecisionTree::findBranchesWithResult | ( | Property * | prTargetResult, |
Property * | prStart = NULL |
||
) |
Definition at line 398 of file DecisionTree.cpp.
void beliefstate::DecisionTree::init | ( | std::string | strMessagePrefix = "" , |
std::string | strFile = "" |
||
) | [protected] |
Definition at line 58 of file DecisionTree.cpp.
std::vector< CKeyValuePair * > beliefstate::DecisionTree::invert | ( | Property * | prTargetResult, |
CKeyValuePair * | ckvpFeatures | ||
) |
Definition at line 285 of file DecisionTree.cpp.
bool beliefstate::DecisionTree::load | ( | std::string | strFile | ) |
Definition at line 68 of file DecisionTree.cpp.
void beliefstate::DecisionTree::missingFeature | ( | std::string | strOperator, |
std::string | strFeatureName | ||
) | [protected] |
Definition at line 455 of file DecisionTree.cpp.
void beliefstate::DecisionTree::missingOperand | ( | std::string | strOperator | ) | [protected] |
Definition at line 459 of file DecisionTree.cpp.
bool beliefstate::DecisionTree::relationSatisfied | ( | Property * | prRelation, |
CKeyValuePair * | ckvpFeatures | ||
) |
Definition at line 101 of file DecisionTree.cpp.
std::vector< Property * > beliefstate::DecisionTree::straightenResultBranch | ( | Property * | prSolutionBranch | ) |
Definition at line 375 of file DecisionTree.cpp.
std::vector< std::vector< Property * > > beliefstate::DecisionTree::straightenResultBranches | ( | std::vector< Property * > | vecSolutionBranches | ) |
Definition at line 365 of file DecisionTree.cpp.
JSON* beliefstate::DecisionTree::m_jsnDecisionTree [private] |
Definition at line 60 of file DecisionTree.h.