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.
TimeSeriesClassificationSampleTrimmer.h
Go to the documentation of this file.
1 
24 /*
25  GRT MIT License
26  Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT>
27 
28  Permission is hereby granted, free of charge, to any person obtaining a copy of this software
29  and associated documentation files (the "Software"), to deal in the Software without restriction,
30  including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
31  and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
32  subject to the following conditions:
33 
34  The above copyright notice and this permission notice shall be included in all copies or substantial
35  portions of the Software.
36 
37  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
38  LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
39  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
41  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42  */
43 
44 #ifndef GRT_TIME_SERIES_TRIMMER_HEADER
45 #define GRT_TIME_SERIES_TRIMMER_HEADER
46 
47 #include "../DataStructures/TimeSeriesClassificationData.h"
48 
49 namespace GRT{
50 
52 public:
53 
57  TimeSeriesClassificationSampleTrimmer(double trimThreshold=0.1,double maximumTrimPercentage=80);
58 
63 
71  if( this != &rhs){
72  this->trimThreshold = rhs.trimThreshold;
73  this->maximumTrimPercentage = rhs.maximumTrimPercentage;
74  this->debugLog = rhs.debugLog;
75  this->warningLog = rhs.warningLog;
76  this->errorLog = rhs.errorLog;
77  }
78  return *this;
79  }
80 
96 
97 private:
98  double trimThreshold;
99  double maximumTrimPercentage;
100  DebugLog debugLog;
101  WarningLog warningLog;
102  ErrorLog errorLog;
103 
104 };
105 
106 } //End of namespace GRT
107 
108 #endif // GRT_TIME_SERIES_TRIMMER_HEADER
TimeSeriesClassificationSampleTrimmer & operator=(const TimeSeriesClassificationSampleTrimmer &rhs)
bool trimTimeSeries(TimeSeriesClassificationSample &timeSeries)
Definition: AdaBoost.cpp:25
TimeSeriesClassificationSampleTrimmer(double trimThreshold=0.1, double maximumTrimPercentage=80)