Interpolation

High-level interpolation of gridded data using B-splines.

Functions

Interpolations.interpolateFunction
interpolate(x, y, BSplineOrder(k))

Interpolate values y at locations x using B-splines of order k.

Grid points x must be real-valued and are assumed to be in increasing order.

Returns a SplineInterpolation which can be evaluated at any intermediate point.

See also interpolate!.

Examples

julia> xs = -1:0.1:1;

julia> ys = cospi.(xs);

julia> itp = interpolate(xs, ys, BSplineOrder(4));

julia> itp(-1)
-1.0

julia> itp(0)
1.0

julia> itp(0.42)
0.2486897676885842
source

Types