WSF
WsfAttributeMeasure Class Reference

#include <WsfBayesClassification.hpp>

Inheritance diagram for WsfAttributeMeasure:

Public Member Functions

 WsfAttributeMeasure ()
virtual ~WsfAttributeMeasure ()=default
virtual double GetEllipticalGate (double aValue, double aChiSqPointMult)
 Elliptical distance.
virtual double GetProbabilityDistribution (double aValue)
 Returns the standard BC statistical distance or probability density function (PDF) value, of the given data point given the set's variance and average.
void SetRange (const AttributePair &aAttributeValuePair)
 Data range from CSV, data inputs.
void SetSigma (const AttributePair &aAttributeValuePair)
virtual void AssertValid ()

Protected Attributes

double mAverage
double mVariance

Friends

class WsfBayesClassifier

Constructor & Destructor Documentation

◆ WsfAttributeMeasure()

WsfAttributeMeasure::WsfAttributeMeasure ( )
inline

◆ ~WsfAttributeMeasure()

virtual WsfAttributeMeasure::~WsfAttributeMeasure ( )
virtualdefault

Member Function Documentation

◆ AssertValid()

void WsfAttributeMeasure::AssertValid ( )
virtual

References mVariance.

Referenced by SetRange(), SetSigma(), and ~WsfAttributeMeasure().

◆ GetEllipticalGate()

double WsfAttributeMeasure::GetEllipticalGate ( double aValue,
double aChiSqPointMult )
virtual

Elliptical distance.

A "point" on the perimeter == 1.0. The peak occurs at the centroid, where aValue = mAverage

Reimplemented in WsfCompoundAttributeMeasure.

References mAverage, and mVariance.

Referenced by ~WsfAttributeMeasure().

◆ GetProbabilityDistribution()

double WsfAttributeMeasure::GetProbabilityDistribution ( double aValue)
virtual

Returns the standard BC statistical distance or probability density function (PDF) value, of the given data point given the set's variance and average.

Reimplemented in WsfCompoundAttributeMeasure.

References mAverage, and mVariance.

Referenced by ~WsfAttributeMeasure().

◆ SetRange()

void WsfAttributeMeasure::SetRange ( const AttributePair & aAttributeValuePair)

Data range from CSV, data inputs.

Used to create sigma.

References AssertValid(), mAverage, AttributePair::mFirst, AttributePair::mSecond, and mVariance.

Referenced by WsfEntityPrototype::AddAttributeProtoRange(), and ~WsfAttributeMeasure().

◆ SetSigma()

void WsfAttributeMeasure::SetSigma ( const AttributePair & aAttributeValuePair)

◆ WsfBayesClassifier

friend class WsfBayesClassifier
friend

References WsfBayesClassifier.

Referenced by WsfBayesClassifier.

Member Data Documentation

◆ mAverage

double WsfAttributeMeasure::mAverage
protected

◆ mVariance


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved