LeastSquareFunction Class Reference

#include <ql/Optimization/leastsquare.hpp>

Inheritance diagram for LeastSquareFunction:

Inheritance graph
[legend]
List of all members.

Detailed Description

Cost function for least-square problems.

Implements a cost function using the interface provided by the LeastSquareProblem class.


Public Member Functions

 LeastSquareFunction (LeastSquareProblem &lsp)
 Default constructor.

virtual ~LeastSquareFunction ()
 Destructor.

virtual Real value (const Array &x) const
 compute value of the least square function

virtual void gradient (Array &grad_f, const Array &x) const
 compute vector of derivatives of the least square function

virtual Real valueAndGradient (Array &grad_f, const Array &x) const
 compute value and gradient of the least square function


Protected Attributes

LeastSquareProblemlsp_
 least square problem


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen