PiecewiseDefaultCurve

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

PiecewiseDefaultCurve

Sriram Rajan
Hello Luigi, 

I have built Quantlib using the SWIG bindings for Python. 

I am not able to see PiecewiseDefaultCurve as one among the classes available to me, which is essential for replicating your CDS pricing example supplied in the code. Can you offer some help? Is PiecewiseDefaultCurve missing for some reason, has it been deprecated? Any advice on how can I replicate, through Python, your example given in the CDS Visual Studio project?

Thanks in advance...

Sriram

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: PiecewiseDefaultCurve

Luigi Ballabio
Hi Sriram,
    the wrappers can't export templates as such, only instantiations.
By default, they export a PiecewiseFlatHazardRate class, which is the
instantiation of PiecewiseDefaultCurve<HazardRate,BackwardFlat>.  If
you need another instantiation, you can edit defaultprobability.i and
add it at the end; it's just a matter of adding a call to the
export_piecewise_default_curve macro.

Luigi

On Thu, Jan 31, 2013 at 5:59 PM, Sriram Rajan
<[hidden email]> wrote:

> Hello Luigi,
>
> I have built Quantlib using the SWIG bindings for Python.
>
> I am not able to see PiecewiseDefaultCurve as one among the classes
> available to me, which is essential for replicating your CDS pricing example
> supplied in the code. Can you offer some help? Is PiecewiseDefaultCurve
> missing for some reason, has it been deprecated? Any advice on how can I
> replicate, through Python, your example given in the CDS Visual Studio
> project?
>
> Thanks in advance...
>
> Sriram
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users