[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin_utils::LMS_Solver Class Reference

Solve a linear least squares problem. More...

#include <lu.h>

List of all members.

Public Member Functions

 LMS_Solver (unsigned nEq)
 Create a new LMS solver.
 ~LMS_Solver ()
template<class Iter>
void addRow (Iter Arow, double b)
 Add a single equation (row) to the solver.
template<class Vector>
bool solve (Vector &x)
 calculate LMS solution, returns false if no solution could be found

Protected Attributes

unsigned m_nEq
doublem_AtA


Detailed Description

Solve a linear least squares problem.


Constructor & Destructor Documentation

hugin_utils::LMS_Solver::LMS_Solver unsigned  nEq  )  [inline]
 

Create a new LMS solver.

A*x = b, solve for x using the pseudoinverse and LU decomposition: A'A x = A' b.

hugin_utils::LMS_Solver::~LMS_Solver  )  [inline]
 


Member Function Documentation

template<class Iter>
void hugin_utils::LMS_Solver::addRow Iter  Arow,
double  b
[inline]
 

Add a single equation (row) to the solver.

template<class Vector>
bool hugin_utils::LMS_Solver::solve Vector &  x  )  [inline]
 

calculate LMS solution, returns false if no solution could be found


Member Data Documentation

double* hugin_utils::LMS_Solver::m_AtA [protected]
 

unsigned hugin_utils::LMS_Solver::m_nEq [protected]
 


The documentation for this class was generated from the following file:

Generated on Mon Sep 20 01:01:35 2010 for Hugintrunk by doxygen 1.3.9.1