Login  Register

Re: FW: Building Yield Curve of Zero Rates

Posted by Boafo, Theophilus on Jan 09, 2013; 3:13am
URL: http://quantlib.414.s1.nabble.com/FW-Building-Yield-Curve-of-Zero-Rates-tp13877p13885.html

Hi Cheng,

vector<QuantLib::Date> yieldMaturities;
vector<Rate> yields

So once I populate yieldMaturities and yields, I build zero yield Curve as follow:

 Handle<YieldTermStructure> yieldCurve(
                                boost::shared_ptr<InterpolatedZeroCurve<Linear>>(
                new InterpolatedZeroCurve<Linear>(yieldMaturities,yields,
                                Actual365Fixed())));      

Regards

Theo

-----Original Message-----
From: Cheng Li [mailto:[hidden email]]
Sent: Wednesday, 9 January 2013 11:00 AM
To: Boafo, Theophilus; [hidden email]
Subject: 答复: [Quantlib-users] FW: Building Yield Curve of Zero Rates

I think "InterpolatedZeroCurve" should do the work.

-----邮件原件-----
发件人: Boafo, Theophilus [mailto:[hidden email]]
发送时间: 2013年1月9日 8:48
收件人: Cheng Li; [hidden email]
主题: RE: [Quantlib-users] FW: Building Yield Curve of Zero Rates

Hi Cheng,

Please do you know the objects used to construct zero yield curves?

Regards

Theo

"This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential,  may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ Bank New Zealand Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication."

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users