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.
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
LUDecomposition.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
This code is based on the LU Decomposition code from Numerical Recipes (3rd Edition).
21
22
*/
23
#ifndef GRT_LUDCMP_HEADER
24
#define GRT_LUDCMP_HEADER
25
26
#include "MatrixDouble.h"
27
28
namespace
GRT
{
29
30
class
LUDecomposition
{
31
32
public
:
33
LUDecomposition
(
const
MatrixDouble
&a);
34
~
LUDecomposition
();
35
bool
solve_vector(
const
VectorDouble &b,VectorDouble &x);
36
bool
solve(
const
MatrixDouble
&b,
MatrixDouble
&x);
37
bool
inverse(
MatrixDouble
&ainv);
38
double
det();
39
bool
mprove(
const
VectorDouble &b,VectorDouble &x);
40
bool
getIsSingular();
41
MatrixDouble
getLU();
42
43
private
:
44
unsigned
int
N;
45
double
d;
46
bool
sing;
47
vector< int > indx;
48
MatrixDouble
aref;
49
MatrixDouble
lu;
50
51
DebugLog
debugLog;
52
ErrorLog
errorLog;
53
WarningLog
warningLog;
54
};
55
56
}
//End of namespace GRT
57
58
#endif //GRT_LUDCMP_HEADER
GRT
Definition:
AdaBoost.cpp:25
GRT::MatrixDouble
Definition:
MatrixDouble.h:42
GRT::ErrorLog
Definition:
ErrorLog.h:51
GRT::LUDecomposition
Definition:
LUDecomposition.h:30
GRT::DebugLog
Definition:
DebugLog.h:51
GRT::WarningLog
Definition:
WarningLog.h:51
ngillian
Documents
dev
libs
grt
GRT
Util
LUDecomposition.h
Generated on Wed Mar 4 2015 12:47:20 for GestureRecognitionToolkit by
1.8.9.1