getting DiscountCurve from Zero Yield Curve

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

getting DiscountCurve from Zero Yield Curve

Eduardo Montoya
Hello everyone,

I would like to know if there is a QuantLib method for obtaining a vector of discount factors
given a vector of rates?

something like:
std::vector<DiscountFactor> zero2discount(std::vector<Rate> curveRates, std::vector<Date> curveDates, Date SettlementDate, Compounding, DayCounter);

thanks in advance for your answers!

Regards,

Eduardo


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: getting DiscountCurve from Zero Yield Curve

Luigi Ballabio
On Thu, 2008-12-04 at 18:34 +0100, Eduardo Montoya wrote:
> I would like to know if there is a QuantLib method for obtaining a
> vector of discount factors
> given a vector of rates?

Not as a function. You can use the vector of rates to instantiate an
InterpolatedZeroCurve. Once you have the curve, you can call the
discount() method repeatedly to get your output vector.

Luigi


--

Ogden's Law:
The sooner you fall behind, the more time you have to catch up.



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users