CubicSpline B-splines fitting method. More...
#include <ql/termstructures/yield/nonlinearfittingmethods.hpp>
Public Member Functions | |
CubicBSplinesFitting (const std::vector< Time > &knotVector, bool constrainAtZero=true) | |
Real | basisFunction (Integer i, Time t) const |
cubic B-spline basis functions | |
std::auto_ptr < FittedBondDiscountCurve::FittingMethod > | clone () const |
clone of the current object | |
![]() | |
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 | |
![]() | |
FittingMethod (bool constrainAtZero=true) | |
constructor | |
void | init () |
rerun every time instruments/referenceDate changes | |
![]() | |
bool | constrainAtZero_ |
constrains discount function to unity at ![]() | |
FittedBondDiscountCurve * | curve_ |
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 | |
CubicSpline B-splines fitting method.
Fits a discount function to a set of cubic B-splines , i.e.,
See: McCulloch, J. 1971, "Measuring the Term Structure of Interest Rates." Journal of Business, 44: 19-31 McCulloch, J. 1975, "The tax adjusted yield curve." Journal of Finance, XXX811-30