Interpolation.HTML_1.gif

functions to construct and use Interpolation and Interpolation2D objects.

The first step is to load the QuantLib package.

Needs["QuantLib`"]

Within the Interpolation part there are several constructors and member functions available

In[873]:=

Select[Category[Interpolation],QLConstructor[#]&]

Out[873]=

Interpolation.HTML_2.gif

In[874]:=

Select[Category[Interpolation],QLMember[#]&]

Out[874]=

Interpolation.HTML_3.gif

Constructors

Interpolation

Interpolation.HTML_4.gif

Interpolation.HTML_5.gif

In[875]:=

Interpolation.HTML_6.gif

In[899]:=

obj=Interpolation[XArray,YArray,InterpolationType->"ForwardFlat"]

Out[899]=

Interpolation.HTML_7.gif

CubicInterpolation

In[880]:=

Interpolation.HTML_8.gif

Interpolation.HTML_9.gif

In[880]:=

Interpolation.HTML_10.gif

In[882]:=

obj=CubicInterpolation[XArray,YArray]

Out[882]=

Interpolation.HTML_11.gif

AbcdInterpolation

Interpolation.HTML_12.gif

Interpolation.HTML_13.gif

In[883]:=

Interpolation.HTML_14.gif

In[885]:=

obj=AbcdInterpolation[XArray,YArray]

Out[885]=

Interpolation.HTML_15.gif

SABRInterpolation

Interpolation.HTML_16.gif

Interpolation.HTML_17.gif

In[890]:=

Interpolation.HTML_18.gif

In[894]:=

obj=SABRInterpolation[XArray,YArray,Expiry,forward]

Out[894]=

Interpolation.HTML_19.gif

Interpolation2D

Interpolation.HTML_20.gif

Interpolation.HTML_21.gif

In[895]:=

Interpolation.HTML_22.gif

In[898]:=

obj=Interpolation2D[XArray,YArray,ZMatrix]

Out[898]=

Interpolation.HTML_23.gif

Member function

ExtrapolatorEnableExtrapolation

Interpolation.HTML_24.gif

In[900]:=

ExtrapolatorEnableExtrapolation[obj]

Out[900]=

Interpolation.HTML_25.gif

InterpolationInterpolate

Interpolation.HTML_26.gif

Interpolation.HTML_27.gif

In[901]:=

Interpolation.HTML_28.gif

In[902]:=

InterpolationInterpolate[obj,XValues]

Out[902]=

Interpolation.HTML_29.gif

InterpolationDerivative

Interpolation.HTML_30.gif

Interpolation.HTML_31.gif

In[903]:=

Interpolation.HTML_32.gif

In[904]:=

InterpolationDerivative[obj,XValues]

Out[904]=

Interpolation.HTML_33.gif

InterpolationSecondDerivative

Interpolation.HTML_34.gif

Interpolation.HTML_35.gif

In[905]:=

Interpolation.HTML_36.gif

In[906]:=

InterpolationSecondDerivative[obj,XValues]

Out[906]=

Interpolation.HTML_37.gif

InterpolationPrimitive

Interpolation.HTML_38.gif

Interpolation.HTML_39.gif

In[907]:=

Interpolation.HTML_40.gif

In[908]:=

InterpolationPrimitive[obj,XValues]

Out[908]=

Interpolation.HTML_41.gif

InterpolationIsInRange

Interpolation.HTML_42.gif

In[909]:=

Interpolation.HTML_43.gif

In[910]:=

InterpolationIsInRange[obj,XValues]

Out[910]=

Interpolation.HTML_44.gif

InterpolationXmin

In[911]:=

InterpolationXmin[obj]

Out[911]=

Interpolation.HTML_45.gif

InterpolationXmax

In[912]:=

InterpolationXmax[obj]

Out[912]=

Interpolation.HTML_46.gif

CubicInterpolationPrimitiveConstants

In[913]:=

CubicInterpolationPrimitiveConstants[obj]

Interpolation.HTML_47.gif

Out[913]=

Interpolation.HTML_48.gif

CubicInterpolationACoefficients

CubicInterpolationACoefficients[obj]

CubicInterpolationBCoefficients

CubicInterpolationBCoefficients[obj]

CubicInterpolationCCoefficients

CubicInterpolationCCoefficients[obj]

CubicInterpolationMonotonicityAdjustments

CubicInterpolationMonotonicityAdjustments[obj]

AbcdInterpolationA

AbcdInterpolationA[obj]

AbcdInterpolationB

AbcdInterpolationB[obj]

AbcdInterpolationC

AbcdInterpolationC[obj]

AbcdInterpolationD

AbcdInterpolationD[obj]

AbcdInterpolationRmsError

AbcdInterpolationRmsError[obj]

AbcdInterpolationMaxError

AbcdInterpolationMaxError[obj]

AbcdInterpolationEndCriteria

AbcdInterpolationEndCriteria[obj]

SABRInterpolationExpiry

SABRInterpolationExpiry[obj]

SABRInterpolationForward

SABRInterpolationForward[obj]

SABRInterpolationAlpha

SABRInterpolationAlpha[obj]

SABRInterpolationBeta

SABRInterpolationBeta[obj]

SABRInterpolationNu

SABRInterpolationNu[obj]

SABRInterpolationRho

SABRInterpolationRho[obj]

SABRInterpolationRmsError

SABRInterpolationRmsError[obj]

SABRInterpolationMaxError

SABRInterpolationMaxError[obj]

SABRInterpolationEndCriteria

SABRInterpolationEndCriteria[obj]

SABRInterpolationWeights

SABRInterpolationWeights[obj]

Interpolation2DXmin

Interpolation2DXmin[obj]

Interpolation2DXmax

Interpolation2DXmax[obj]

Interpolation2DXvalues

Interpolation2DXvalues[obj]

Interpolation2DYmin

Interpolation2DYmin[obj]

Interpolation2DYmax

Interpolation2DYmax[obj]

Interpolation2DYvalues

Interpolation2DYvalues[obj]

Interpolation2DzData

Interpolation2DzData[obj]

Interpolation2DIsInRange

Interpolation.HTML_49.gif

Interpolation.HTML_50.gif

Interpolation2DIsInRange[obj,XValues,YValue]

Interpolation2DInterpolate

Interpolation.HTML_51.gif

Interpolation.HTML_52.gif

Interpolation.HTML_53.gif

Interpolation2DInterpolate[obj,XValue,YValue]

Spikey Created with Wolfram Mathematica 7.0