Hello,
cubic interpolation of the yield term structure is not available
in the C# wrapper as released. You'll have to modify
piecewiseyieldcurve.i and regenerate the wrappers to enable it.
First, create a traits class to specify the kind of cubic
interpolation you want: something like
%{
class MyCubic : public QuantLib::LogCubic {
MyCubic() :
QuantLib::LogCubic(QuantLib::CubicInterpolation::Spline, true) {}
};
%}
should do the work. Then, add a line like
export_piecewise_curve(MyPiecewiseCubic,ZeroYield,MyCubic);
(replace Discount with ZeroYield or ForwardRate if that's what you
want to interpolate).
Then run SWIG on the updated wrappers (I think there's a .bat for this
that passes the correct parameters) and recompile.
Luigi
On Tue, Mar 6, 2012 at 5:06 PM, Moon Yan <
[hidden email]> wrote:
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users