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.
TestResult.h
Go to the documentation of this file.
1 
9 #ifndef GRT_TEST_RESULT_HEADER
10 #define GRT_TEST_RESULT_HEADER
11 
12 #include "GRTTypedefs.h"
13 #include "MatrixDouble.h"
14 
15 namespace GRT {
16 
17 class TestResult{
18 public:
25  }
26 
34  TestResult(const TestResult &rhs){
35  *this = rhs;
36  }
37 
42 
43  }
44 
45  TestResult& operator=(const TestResult &rhs){
46  if( this != &rhs ){
47  this->numTrainingSamples = rhs.numTrainingSamples;
48  this->numTestSamples = rhs.numTestSamples;
49  this->accuracy = rhs.accuracy;
50  this->rmsError = rhs.rmsError;
51  this->totalSquaredError = rhs.totalSquaredError;
52  this->trainingTime = rhs.trainingTime;
53  this->testTime = rhs.testTime;
54  this->rejectionPrecision = rhs.rejectionPrecision;
55  this->rejectionRecall = rhs.rejectionRecall;
56  this->precision = rhs.precision;
57  this->recall = rhs.recall;
58  this->fMeasure = rhs.fMeasure;
59  this->confusionMatrix = rhs.confusionMatrix;
60  }
61  return *this;
62  }
63 
64  unsigned int numTrainingSamples;
65  unsigned int numTestSamples;
66  double accuracy;
67  double rmsError;
68  double totalSquaredError;
69  double trainingTime;
70  double testTime;
71  double rejectionPrecision;
72  double rejectionRecall;
73  VectorDouble precision;
74  VectorDouble recall;
75  VectorDouble fMeasure;
76  MatrixDouble confusionMatrix;
77 
78 };
79 
80 }//End of namespace GRT
81 
82 #endif //GRT_TEST_RESULT_HEADER
TestResult(const TestResult &rhs)
Definition: TestResult.h:34
Definition: AdaBoost.cpp:25