Linear Interpolation Class

Posted by sami jamjam on
URL: http://quantlib.414.s1.nabble.com/Linear-Interpolation-Class-tp3946.html

Hello,

I want use the linear interpolation class to interpolate my discount
factors. So I defined the interpolation function as follows :

QuantLib::Handle<Interpolation> interpolations_;

    interpolations_ = Handle<Interpolation>(

                      new LinearInterpolation(xBegin, xEnd, yBegin));

        double discount = (* interpolations_)(today.serialNumber(), true);

But, when I try to test my program with these parameters :

double * xBegin;
double * xEnd;
double * yBegin;

I have an error message, and the execution is stopped. So if there is
somoene who already have an experience with the use of this class can help
me, I will be very grateful.

Regards,

Sami

_________________________________________________________________
Testez le nouveau MSN Messenger ! http://search.msn.fr/