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