GestureRecognitionToolkit  Version: 0.1.0
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 #endif //GRT_CXX11_ENABLED
48 
49 //Include the main GRT version and typedef headers
50 #include "GRTVersionInfo.h"
51 #include "GRTTypedefs.h"
52 
53 //Include the common GRT classes
54 #include "GRTException.h"
55 #include "MinMax.h"
56 #include "ClassTracker.h"
57 #include "IndexedDouble.h"
58 #include "DebugLog.h"
59 #include "ErrorLog.h"
60 #include "InfoLog.h"
61 #include "TrainingLog.h"
62 #include "TestingLog.h"
63 #include "WarningLog.h"
64 #include "../DataStructures/VectorFloat.h"
65 #include "../DataStructures/MatrixFloat.h"
66 #include "TrainingResult.h"
67 #include "TestInstanceResult.h"
68 #include "TestResult.h"
69 #include "CircularBuffer.h"
70 #include "Timer.h"
71 #include "TimeStamp.h"
72 #include "Random.h"
73 #include "Util.h"
74 #include "EigenvalueDecomposition.h"
75 #include "Cholesky.h"
76 #include "LUDecomposition.h"
77 #include "SVD.h"
78 #include "FileParser.h"
79 #include "ObserverManager.h"
80 #include "ThreadPool.h"
81 #include "DataType.h"
82 
83 GRT_BEGIN_NAMESPACE
84 
85 #if _MSC_VER >= 1600
86  inline Float round( Float d ) {
87  return floor( d + 0.5 );
88  }
89 #endif
90 
91 GRT_END_NAMESPACE
92 
93 #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...
The CircularBuffer class provides a data structure for creating a dynamic circular buffer (also known...
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 Random class, a useful wrapper for generating cross platform random functions...
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...