Login  Register

PiecewiseYieldCurve question

Posted by jlee on Jan 29, 2014; 1:49pm
URL: http://quantlib.414.s1.nabble.com/PiecewiseYieldCurve-question-tp14918.html

Hi all,
Pretty new to QuantLib and have been playing with the Example sources. I have a question regarding the PiecewiseYieldCurve object. If I want to make the first two parameters (traitid and interpolatorid) an input variable how can I do this? Specifically, I'm looking at the swapvaluation.cpp example where it is using "Discount" and "LogLinear". I want to make it a user input so the interpolation method can be changed. Sorry it's probably more of a C++ question as I'm a bit weak on templates.

Thank you,
Jon