|
WSF
|
#include <WsfBayesClassifier.hpp>


Public Member Functions | |
| WsfBayesClassifier () | |
| WsfBayesClassifier (const WsfBayesClassifier &aSrc)=default | |
| WsfBayesClassifier & | operator= (const WsfBayesClassifier &)=delete |
| ~WsfBayesClassifier () override=default | |
| WsfTrackClassifier * | Clone () override |
| bool | ProcessInput (UtInput &aInput) override |
| virtual bool | Initialize (double aSimTime) |
| TrackAccessor * | GetTrackAccessor (const WsfTrack &aTrack) override |
| We need to parse a track once and re-use the data a lot. | |
| void | CreateClassList (const TrackAccessor &aTrack, ClassificationReportList &aClassificationReportList) override |
| Create a list of probable classifications for the track. | |
| void | Classify (const TrackAccessor &aTrackAccessor, const ClassificationReportList &aClassificationList, ClassificationReport &aClassificationReport) override |
| The realistic Bayes classifier just selects the best candidate. | |
| Public Member Functions inherited from WsfTrackClassifier | |
| WsfTrackClassifier () | |
| WsfTrackClassifier (const WsfTrackClassifier &aSrc)=default | |
| WsfTrackClassifier & | operator= (const WsfTrackClassifier &)=delete |
| virtual | ~WsfTrackClassifier ()=default |
Protected Member Functions | |
| bool | ReadCsv (const std::string &aFileName) |
| void | AddDataRow (const std::string &aEntityType, const std::vector< ColumnPair > &aAttributeNamePairs, const std::vector< AttributePair > &aAttributeValuePairs) |
| void | Test () override |
Friends | |
| class | WsfBayesClassification |
Additional Inherited Members | |
| Protected Attributes inherited from WsfTrackClassifier | |
| bool | mDebug |
A track classifier that is a Bayesian Classifier, which is not the same thing as a Bayesian (network) engine. It uses configured data sources to determine probabilities of being entity types This class creates a instantiation, which protects all the utility classes it uses.
| WsfBayesClassifier::WsfBayesClassifier | ( | ) |
References WsfTrackClassifier::WsfTrackClassifier().
Referenced by Clone(), operator=(), and WsfBayesClassifier().
|
default |
References WsfBayesClassifier().
|
overridedefault |
References AddDataRow(), Initialize(), ReadCsv(), and WsfTrackClassifier::WsfTrackClassifier().
|
protected |
The given lists are matched in order, i.e., name[0] equates to value[0]. FYI The name list is re-used for all rows.
References WsfEntityPrototype::AddAttributeProtoRange(), WsfEntityPrototype::AddAttributeProtoSigma(), ColumnPair::mFirst, ColumnPair::mSecond, WsfEntityPrototype::mTypeName, and WsfEntityPrototype::mTypeNameID.
Referenced by ReadCsv(), and ~WsfBayesClassifier().
|
overridevirtual |
The realistic Bayes classifier just selects the best candidate.
First a call to createList. Then that list is passed in here.
Reimplemented from WsfTrackClassifier.
References ClassificationReport::mEntityTypeId, and ClassificationReport::mTypeScore.
Referenced by Test().
|
overridevirtual |
Implements WsfTrackClassifier.
References WsfBayesClassifier(), and WsfTrackClassifier::WsfTrackClassifier().
|
overridevirtual |
Create a list of probable classifications for the track.
This default impl creates a list of one, which contains truth.
Reimplemented from WsfTrackClassifier.
Referenced by Test().
|
overridevirtual |
We need to parse a track once and re-use the data a lot.
Even for a classifier subclass, the accessor is needed first for each prototype to create the list; then it is needed for gating. This function enables re-use.
Reimplemented from WsfTrackClassifier.
References WsfTrackAccessorDeep::SetTrack().
Referenced by Test().
|
virtual |
Referenced by ~WsfBayesClassifier().
|
delete |
References WsfBayesClassifier().
|
overridevirtual |
Reimplemented from WsfTrackClassifier.
References WsfTrackClassifier::mDebug, WsfTrackClassifier::ProcessInput(), and ReadCsv().
|
protected |
Read a data table to populate the entity prototypes It's possible and common to use multiple tables to populate the same entity type; the attributes will be merged.
References AddDataRow(), WsfTrackClassifier::mDebug, AttributePair::mFirst, ColumnPair::mFirst, AttributePair::mSecond, and ColumnPair::mSecond.
Referenced by ProcessInput(), and ~WsfBayesClassifier().
|
overrideprotectedvirtual |
Reimplemented from WsfTrackClassifier.
References WsfTrack::AddSignal(), Classify(), CreateClassList(), WsfTrackAccessorDeep::GetAttributeCount(), GetTrackAccessor(), WsfAttributeMeasure::mAverage, ClassificationReport::mEntityTypeId, WsfCompoundAttributeMeasure::mMultiModes, WsfEntityPrototype::mName2Attribase, ClassificationReport::mTypeScore, WsfAttributeMeasure::mVariance, WsfClassificationProcessor::PrintClassList(), and WsfTrack::SetTargetType().
|
friend |
References WsfBayesClassification.
Referenced by WsfBayesClassification.