You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The piecewise objects that are returned when creating B splines, should be either right-continuous (preferred, see Carl de Boor's book or papers) or left-continuous.
Currently, the boundaries of an interval are also part of the adjacent intervals.
See e.g. here
The text was updated successfully, but these errors were encountered:
This is only relevant for d=0, right? Otherwise the splines are continuous. The support for degree-0 splines seems inconsistent at present.
>>> interpolating_spline(0, x, [1, 2, 3], [1, 2, 3])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/k3/sympy/sympy/functions/special/bsplines.py", line 250, in interpolating_spline
"Spline degree must be a positive integer, not %s." % d)
ValueError: Spline degree must be a positive integer, not 0.
I agree using closed intervals here is problematic because these Piecewise functions are not a basis for degree 0 splines. To be consistent with Wikipedia or the sources you mentioned, we need
The piecewise objects that are returned when creating B splines, should be either right-continuous (preferred, see Carl de Boor's book or papers) or left-continuous.
Currently, the boundaries of an interval are also part of the adjacent intervals.
See e.g. here
The text was updated successfully, but these errors were encountered: