Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

LeastSquareFunction Class Template Reference

#include <leastsquare.h>

Inheritance diagram for LeastSquareFunction::

CostFunction List of all members.

Public Types

typedef double value_type
 value type of the vector.


Public Methods

 LeastSquareFunction (LeastSquareProblem< V, M > &lsp)
 Default constructor.

virtual ~LeastSquareFunction ()
 Destructor.

virtual value_type value (const V &x)
 compute value of the least square function.

virtual void firstDerivative (V &grad_f, const V &x)
 compute vector of derivatives of the least square function.

virtual value_type valueAndFirstDerivative (V &grad_f, const V &x)
 compute value and vector of derivatives of the least square function.

virtual void Update ()
 to improve.

virtual void Save (OptimizationMethod< V > &)
 to improve.


Protected Attributes

LeastSquareProblem< V, M > & lsp_
 least square problem.


Detailed Description

template<class V, class M>
class LeastSquareFunction< V, M >

Design a least square function as a cost function using the interface provided by LeastSquareProblem<V,M> class. V vector class requires function DotProduct() that computes dot product and - operator M matrix class requires function transpose() that computes transpose and * operator with vector class

Definition at line 42 of file leastsquare.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 7 16:26:00 2001 for Optimization by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001