espline
finds all local extremes of a cubic spline
Contents
Syntax
[xy_min, xy_max , info] = espline (xy, Dy1, Dyk)
Description
The function espline finds all local extremes of a cubic spline. It does so by getting prior estimates using rspline1 applied to the derivatives of the spline, followed by a Newton Raphson procedure.
Input:
- xy: (r,2)-matrix with knots (r>3)
Output:
- xy_min: (n_min,2)-matrix with (x,y)-values of local minima
- xy_max: (n_max,2)-matrix with (x,y)-values of local maxima
- info: 1 = successful, 0 if not
Remarks
cf spline
Example of use
See mydata_smooth