Next: , Previous: , Up: Octave Functions and Scripts   [Contents][Index]


5.54 interpolate_curve

Function File: [y] = interpolate_curve (nodes, rates, timestep, interp_method, ufr, alpha, method_extrapolation)

Calculate an interpolated rate on a curve for a given timestep.
Supported methods are: linear (default), moneymarket, exponential, loglinear, spline, smith-wilson, monotone-convex, constant (mapped to previous), previous and next.

A constant extrapolation is assumed, except for smith-wilson, where the ultimate forward rate will be reached proportional to reversion speed alpha. For all methods except splines a fast taylormade algorithm is used. For splines see Octave function interp1 for more details. Explanation of Input Parameters of the interpolation curve function:
Variables:

See also: interp1, interp2, interp3, interpn.