bgrimstad / splinter

Library for multivariate function approximation with splines (B-spline, P-spline, and more) with interfaces to C++, C, Python and MATLAB
Mozilla Public License 2.0
418 stars 115 forks source link

not-a-knot end conditions #130

Open AlexRockliff opened 3 years ago

AlexRockliff commented 3 years ago

Matlab has a GriddedInterpolant function which when used in "spline" interpolation mode, can generate cubic splines for n dimensional data, like splinter. However, Matlab's GriddedInterpolant function uses not-a-knot end conditions, which gives it distinctly different characteristics to splinter near the edges of the data set.

Support for optionally using not-a-knot end conditions when building a spline would be really useful.