CPP Linear Algebra ToolBox  0.1.0
lsq.h
Go to the documentation of this file.
1 
10 #ifndef LSQ_H
11 #define LSQ_H
12 
13 #include "squareMatrix.h"
14 
15 class LSQ {
16  public:
17 
18  /* CONSTRUCTORS */
19  LSQ();
20  LSQ(const LSQ & );
21  LSQ(const Matrix * , const Vector * );
22 
23  /* DESTRUCTOR */
24  ~LSQ();
25 
26  /* METHODS */
27  void solve();
28  void solve(double );
29  double eval();
30 
31  private:
32  Matrix * A;
33  Vector * b;
34  Vector * x;
35 
36  double lambda;
37 
38  SquareMatrix * AAt;
39  SquareMatrix * AtA;
40 };
41 
42 #endif
Definition: lsq.h:15
LSQ(const LSQ &)
void solve(double)
~LSQ()
double eval()
void solve()
LSQ(const Matrix *, const Vector *)
A class describing a Matrix object. Matrices are array of size (n,m) whre n and m are integer greater...
Definition: matrix.h:29
Definition: squareMatrix.h:15
A lightweight class describing a Vector object. Vectors are array with size n (>0) of doubles.
Definition: vector.h:25