roots
Return real roots of a spline within its domain.
Declaration
values = roots(spline)
Parameters
splineBSpline instance
Returns
valuessorted real roots in the spline domain
Discussion
Use this to locate zero crossings of the spline over its support.
The implementation works interval by interval on the cached piecewise-polynomial coefficients, then keeps only real roots that lie in the corresponding interval.
tZero = roots(spline);