kbarbary / Dierckx.jl

Julia package for 1-d and 2-d splines
Other
155 stars 30 forks source link

`derivative` does not respect boundary condition #97

Open SimonEnsemble opened 2 weeks ago

SimonEnsemble commented 2 weeks ago

I'm using bc="nearest" for my 1D spline interpolator, but the derivative function is not respecting this boundary condition. here, I'm showing that the derivative is nonzero, whereas the interpolator is flat in this region of the domain.

Screenshot 2024-06-15 at 8 34 19 AM
SimonEnsemble commented 2 weeks ago

(for now, using Calculus.derivative instead of derivative in this package)