#include <InferenceAlgorithm.h>
Public Member Functions | |
virtual void | doInference (std::vector< ISM::Object > pEvidenceList, std::ofstream &pRuntimeLogger)=0 |
virtual double | getProbability ()=0 |
InferenceAlgorithm () | |
virtual void | load (boost::property_tree::ptree &pPt)=0 |
virtual | ~InferenceAlgorithm () |
Abstract class for an inference algorithm. In this case inference is the process of determining the scene probability based on the scene model.
Definition at line 41 of file InferenceAlgorithm.h.
ProbabilisticSceneRecognition::InferenceAlgorithm::InferenceAlgorithm | ( | ) |
Constructor.
Definition at line 22 of file InferenceAlgorithm.cpp.
|
virtual |
Destructor.
Definition at line 26 of file InferenceAlgorithm.cpp.
|
pure virtual |
Executes the inference based on the given evidence.
pEvidenceList | A list containing all evidences. |
pRuntimeLogger | A file handle for runtime logging. |
Implemented in ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::MaximumForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::MultipliedForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::MultipliedBackgroundInferenceAlgorithm, and ProbabilisticSceneRecognition::SummarizedForegroundInferenceAlgorithm.
|
pure virtual |
Returns the probability calculated by the inference process.
Implemented in ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::MaximumForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::MultipliedForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetForegroundInferenceAlgorithm, ProbabilisticSceneRecognition::MaximumBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::PowerSetBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::SummarizedBackgroundInferenceAlgorithm, ProbabilisticSceneRecognition::SummarizedForegroundInferenceAlgorithm, and ProbabilisticSceneRecognition::MultipliedBackgroundInferenceAlgorithm.
|
pure virtual |
Loads the model from an XML file.
pPt | Data structure for performing XML operations. |
Implemented in ProbabilisticSceneRecognition::ForegroundInferenceAlgorithm, and ProbabilisticSceneRecognition::BackgroundInferenceAlgorithm.