GestureRecognitionToolkit  Version: 0.2.5
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 "../DataStructures/VectorFloat.h"
13 #include "../DataStructures/MatrixFloat.h"
14 
15 GRT_BEGIN_NAMESPACE
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  Float accuracy;
67  Float rmsError;
68  Float totalSquaredError;
69  Float trainingTime;
70  Float testTime;
71  Float rejectionPrecision;
72  Float rejectionRecall;
73  VectorFloat precision;
74  VectorFloat recall;
75  VectorFloat fMeasure;
76  MatrixFloat confusionMatrix;
77 
78 };
79 
80 GRT_END_NAMESPACE
81 
82 #endif //GRT_TEST_RESULT_HEADER
TestResult(const TestResult &rhs)
Definition: TestResult.h:34