PiecewiseYieldCurve and Interpolator class

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PiecewiseYieldCurve and Interpolator class

jing lu
All,

I am trying to build a term structure using the PiecewiseYieldCurve class
like  foo = new PiecewiseYieldCurve<ZeroYield,LogLinear>(......). I can use
class LogLinear, class Linear or Class ForwardFlat for the 2nd argument, I
wonder which class should I use if I want CubicSpline as the interpolation
method.

Thanks,

Jing



It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: PiecewiseYieldCurve and Interpolator class

Luigi Ballabio
On Wed, 2007-06-27 at 14:28 -0700, jing lu wrote:
> I am trying to build a term structure using the PiecewiseYieldCurve
> class
> like  foo = new PiecewiseYieldCurve<ZeroYield,LogLinear>(......). I
> can use
> class LogLinear, class Linear or Class ForwardFlat for the 2nd
> argument, I
> wonder which class should I use if I want CubicSpline as the
> interpolation
> method.

You can use Cubic. You can specify a few parameters, too---see
test-suite/piecewiseyieldcurve.cpp for examples.

Luigi


--

Do the right thing. It will gratify some people and astonish the rest.
-- Mark Twain



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users