SimplePolynomialFitting Class Reference

Simple polynomial fitting method. More...

#include <ql/termstructures/yield/nonlinearfittingmethods.hpp>

Inheritance diagram for SimplePolynomialFitting:

Public Member Functions

 SimplePolynomialFitting (Natural degree, bool constrainAtZero=true)
 
std::auto_ptr
< FittedBondDiscountCurve::FittingMethod
clone () const
 clone of the current object
 
- Public Member Functions inherited from FittedBondDiscountCurve::FittingMethod
Array solution () const
 output array of results of optimization problem
 
Integer numberOfIterations () const
 final number of iterations used in the optimization problem
 
Real minimumCostValue () const
 final value of cost function after optimization
 

Additional Inherited Members

- Protected Member Functions inherited from FittedBondDiscountCurve::FittingMethod
 FittingMethod (bool constrainAtZero=true)
 constructor
 
void init ()
 rerun every time instruments/referenceDate changes
 
- Protected Attributes inherited from FittedBondDiscountCurve::FittingMethod
bool constrainAtZero_
 constrains discount function to unity at $ T=0 $, if true
 
FittedBondDiscountCurvecurve_
 internal reference to the FittedBondDiscountCurve instance
 
Array solution_
 solution array found from optimization, set in calculate()
 
Array guessSolution_
 optional guess solution to be passed into constructor.
 
boost::shared_ptr< FittingCost > costFunction_
 base class sets this cost function used in the optimization routine
 

Detailed Description

Simple polynomial fitting method.

Examples:
FittedBondCurve.cpp.