GestureRecognitionToolkit  Version: 1.0 Revision: 04-03-15
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
GRT::ClassificationResult Class Reference

Public Member Functions

 ClassificationResult (UINT classLabel=0, UINT predictedClassLabel=0, UINT unprocessedPredictedClassLabel=0, double maximumLikelihood=0, VectorDouble classLikelihoods=VectorDouble(), VectorDouble classDistances=VectorDouble())
 
 ClassificationResult (const ClassificationResult &rhs)
 
 ~ClassificationResult ()
 
ClassificationResult operator= (const ClassificationResult &rhs)
 
bool getCorrectPrediction ()
 
UINT getClassLabel ()
 
UINT getPredictedClassLabel ()
 
UINT getUnprocessedPredictedClassLabel ()
 
double getMaximumLikelihood ()
 
VectorDouble getClassLikelihoods ()
 
VectorDouble getClassDistances ()
 

Public Attributes

UINT classLabel
 
UINT predictedClassLabel
 
UINT unprocessedPredictedClassLabel
 
double maximumLikelihood
 
VectorDouble classLikelihoods
 
VectorDouble classDistances
 

Detailed Description

Definition at line 35 of file ClassificationResult.h.

Constructor & Destructor Documentation

GRT::ClassificationResult::ClassificationResult ( UINT  classLabel = 0,
UINT  predictedClassLabel = 0,
UINT  unprocessedPredictedClassLabel = 0,
double  maximumLikelihood = 0,
VectorDouble  classLikelihoods = VectorDouble(),
VectorDouble  classDistances = VectorDouble() 
)
inline

Default Constructor.

Initializes the ClassificationResult instance.

Parameters
UINTclassLabel: sets the class label corresponding to this instance. Default value = 0
UINTpredictedClassLabel: sets the predicted class label corresponding to this instance. Default value = 0
UINTunprocessedPredictedClassLabel: sets the unprocessed predicted class label corresponding to this instance. Default value = 0
UINTmaximumLikelihood: sets the maximum likelihood corresponding to this instance. Default value = 0
VectorDoubleclassLikelihoods: sets the class likelihoods corresponding to this instance. Default value = empty vector
VectorDoubleclassDistances: sets the class label corresponding to this instance. Default value = empty vector

Definition at line 49 of file ClassificationResult.h.

GRT::ClassificationResult::ClassificationResult ( const ClassificationResult rhs)
inline

Copy Constructor.

Initializes this instance by copying the data from the rhs instance

Parameters
constClassificationResult &rhs: another instance of the ClassificationResult class

Definition at line 65 of file ClassificationResult.h.

GRT::ClassificationResult::~ClassificationResult ( )
inline

Default Destructor.

Definition at line 77 of file ClassificationResult.h.

Member Function Documentation

VectorDouble GRT::ClassificationResult::getClassDistances ( )
inline

Returns the vector of class distances corresponding with this classification result.

Returns
returns the vector of class distances

Definition at line 160 of file ClassificationResult.h.

UINT GRT::ClassificationResult::getClassLabel ( )
inline

Returns the class label corresponding with this classification result.

Returns
returns the class label

Definition at line 113 of file ClassificationResult.h.

VectorDouble GRT::ClassificationResult::getClassLikelihoods ( )
inline

Returns the vector of class likelihoods corresponding with this classification result.

Returns
returns the vector of class likelihoods

Definition at line 151 of file ClassificationResult.h.

bool GRT::ClassificationResult::getCorrectPrediction ( )
inline

Returns true if the predicted class label matches the class label.

Returns
returns true if the predicted class label matches the class label, false otherwise

Definition at line 104 of file ClassificationResult.h.

double GRT::ClassificationResult::getMaximumLikelihood ( )
inline

Returns the maximum likelihood corresponding with this classification result.

Returns
returns the maximum likelihood

Definition at line 142 of file ClassificationResult.h.

UINT GRT::ClassificationResult::getPredictedClassLabel ( )
inline

Returns the predicted class label corresponding with this classification result. The predicted class label is the output prediction of your pipeline.

Returns
returns the predicted class label

Definition at line 123 of file ClassificationResult.h.

UINT GRT::ClassificationResult::getUnprocessedPredictedClassLabel ( )
inline

Returns the unprocessed predicted class label corresponding with this classification result. The unprocessed predicted class label is the output of the classifier in your pipeline.

Returns
returns the unprocessed predicted class label

Definition at line 133 of file ClassificationResult.h.

ClassificationResult GRT::ClassificationResult::operator= ( const ClassificationResult rhs)
inline

Defines the equals operator

Parameters
constClassificationResult &rhs: another instance of the ClassificationResult class
Returns
returns a pointer to this instace

Definition at line 87 of file ClassificationResult.h.


The documentation for this class was generated from the following file: