jipolanco / BSplineKit.jl

A collection of B-spline tools in Julia
https://jipolanco.github.io/BSplineKit.jl/dev/
MIT License
50 stars 9 forks source link

Extend interpolation methods from Interpolations.jl #20

Closed jipolanco closed 3 years ago

jipolanco commented 3 years ago

The interpolate and interpolate! functions are now extended from Interpolations.jl.

This is a first step to reuse other definitions from Interpolations.jl, and in particular their extrapolation boundary conditions. It will also allow the user to import both BSplineKit and Interpolations without name conflicts.

With this, there is a breaking change: interpolate(xs, ys, order::Integer) is no longer defined. Instead, the B-spline order must always be passed wrapped in a BSplineOrder (which was already the recommended way of doing this). This is to avoid overriding methods from Interpolations.jl.