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.
GRTCommon.h
1 /*
2 GRT MIT License
3 Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT>
4 
5 Permission is hereby granted, free of charge, to any person obtaining a copy of this software
6 and associated documentation files (the "Software"), to deal in the Software without restriction,
7 including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
9 subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in all copies or substantial
12 portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15 LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 */
20 
21 #ifndef GRT_COMMON_HEADER
22 #define GRT_COMMON_HEADER
23 
24 //Include the common C++ headers
25 #include <iostream>
26 #include <vector>
27 #include <algorithm>
28 #include <fstream>
29 #include <sstream>
30 #include <string>
31 #include <float.h>
32 #include <cmath>
33 #include <math.h>
34 #include <time.h>
35 #include <map>
36 #include <limits>
37 #include <stdlib.h>
38 #include <stdio.h>
39 #include <stddef.h>
40 #include <cstddef>
41 
42 //Only include the C++ 11 code if C++11 support it is enabled
43 #ifdef GRT_CXX11_ENABLED
44 #include <atomic>
45 #include <thread>
46 #include <mutex>
47 #include <memory>
48 #include <random>
49 #endif //GRT_CXX11_ENABLED
50 
51 //Include the main GRT version and typedef headers
52 #include "GRTVersionInfo.h"
53 #include "GRTTypedefs.h"
54 
55 //Include the common GRT classes
56 #include "GRTException.h"
57 #include "MinMax.h"
58 #include "ClassTracker.h"
59 #include "IndexedDouble.h"
60 #include "DebugLog.h"
61 #include "ErrorLog.h"
62 #include "InfoLog.h"
63 #include "TrainingLog.h"
64 #include "TestingLog.h"
65 #include "WarningLog.h"
66 #include "../DataStructures/VectorFloat.h"
67 #include "../DataStructures/MatrixFloat.h"
68 #include "TrainingResult.h"
69 #include "TestInstanceResult.h"
70 #include "TestResult.h"
71 #include "CircularBuffer.h"
72 #include "Timer.h"
73 #include "TimeStamp.h"
74 #include "Random.h"
75 #include "Util.h"
76 #include "EigenvalueDecomposition.h"
77 #include "Cholesky.h"
78 #include "LUDecomposition.h"
79 #include "SVD.h"
80 #include "FileParser.h"
81 #include "ObserverManager.h"
82 #include "ThreadPool.h"
83 #include "DataType.h"
84 #include "DynamicType.h"
85 #include "Dict.h"
86 #include "Metrics.h"
87 
88 GRT_BEGIN_NAMESPACE
89 
90 #if _MSC_VER >= 1600
91  inline Float round( Float d ) {
92  return floor( d + 0.5 );
93  }
94 #endif
95 
96 GRT_END_NAMESPACE
97 
98 #endif //GRT_COMMON_HEADER
This file contains the Util class, a wrapper for a number of generic functions that are used througho...
The TestInstanceResult class provides a data structure for storing the results of a classification or...
This code is based on the LU Decomposition code from Numerical Recipes (3rd Edition) ...
The TestResult class provides a data structure for storing the results of a classification or regress...
This file contains the Metrics class, it can be used to compute common metrics such as accuracy...
The TrainingResult class provides a data structure for storing the results of a classification or reg...
The ThreadPool class implements a flexible inteface for performing a large number of batch tasks...