GestureRecognitionToolkit  Version: 0.1.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
MinDistModel Class Reference

#include <MinDistModel.h>

Public Member Functions

 MinDistModel ()
 
 MinDistModel (const MinDistModel &rhs)
 
 ~MinDistModel (void)
 
MinDistModeloperator= (const MinDistModel &rhs)
 
bool train (UINT classLabel, MatrixFloat &trainingData, UINT numClusters, Float minChange, UINT maxNumEpochs)
 
Float predict (const VectorFloat &observation)
 
void recomputeThresholdValue ()
 
UINT getClassLabel () const
 
UINT getNumFeatures () const
 
UINT getNumClusters () const
 
UINT getDistanceMode () const
 
Float getRejectionThreshold () const
 
Float getGamma () const
 
Float getTrainingMu () const
 
Float getTrainingSigma () const
 
MatrixFloat getClusters () const
 
bool setClassLabel (UINT classLabel)
 
bool setClusters (MatrixFloat &clusters)
 
bool setGamma (Float gamma)
 
bool setRejectionThreshold (Float rejectionThreshold)
 
bool setTrainingSigma (Float trainingSigma)
 
bool setTrainingMu (Float trainingMu)
 

Detailed Description

GRT MIT License Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 37 of file MinDistModel.h.

Constructor & Destructor Documentation

GRT_BEGIN_NAMESPACE MinDistModel::MinDistModel ( )

Default Constructor

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 22 of file MinDistModel.cpp.

MinDistModel::MinDistModel ( const MinDistModel rhs)

Default Copy Constructor

Definition at line 32 of file MinDistModel.cpp.

MinDistModel::~MinDistModel ( void  )

Default Destructor

Definition at line 44 of file MinDistModel.cpp.

Member Function Documentation

MinDistModel & MinDistModel::operator= ( const MinDistModel rhs)

Defines how the data from the rhs MinDistModel should be copied to this MinDistModel

Parameters
constMinDistModel &rhs: another instance of a MinDistModel
Returns
returns a pointer to this instance of the MinDistModel

Definition at line 46 of file MinDistModel.cpp.


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