latest version v1.9 - last update 10 Apr 2010 |
minimizeBasis functor. More...
#include <ltiMinimizeBasis.h>
Classes | |
class | parameters |
minimizeBasis parameter class More... | |
Public Member Functions | |
minimizeBasis () | |
minimizeBasis (const parameters &theParams) | |
virtual | ~minimizeBasis () |
const parameters & | getParameters () const |
void | apply (const matrix< T > &testVectors, matrix< T > &newBasis, matrix< T > &factors) |
virtual functor * | clone () const |
virtual const char * | getTypeName () const |
This functor generates a minimum number of basis vectors to approximate a given set of vectors within a given deviation.
There is a Fast and an Exact method of computing the minimized basis. Normally the Exact method should be used, because it does not only compute the exact solution and the smallest basis, but may even be faster than the "Fast" method. The "Fast" method is not exact and may return a basis which is larger than necessary.
lti::minimizeBasis< T >::minimizeBasis | ( | ) | [inline] |
default constructor
lti::minimizeBasis< T >::minimizeBasis | ( | const parameters & | theParams | ) |
constructor, sets the parameters
virtual lti::minimizeBasis< T >::~minimizeBasis | ( | ) | [inline, virtual] |
destructor
void lti::minimizeBasis< T >::apply | ( | const matrix< T > & | testVectors, | |
matrix< T > & | newBasis, | |||
matrix< T > & | factors | |||
) |
onCopy version of apply.
testVectors' rows should contain the vectors to be approximated. newBasis' columns will contain the new basis vectors. factors' rows will contain the factors to mulitply the new basis vectors by to approximate the testVectors.
virtual functor* lti::minimizeBasis< T >::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
const parameters& lti::minimizeBasis< T >::getParameters | ( | ) | const |
returns the current parameters.
Reimplemented from lti::functor.
virtual const char* lti::minimizeBasis< T >::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this type
Reimplemented from lti::linearAlgebraFunctor.