rspline

Calculates real roots x of cubic spline(x) = y, given y

Contents

Syntax

[x, info] = rspline (knots, Dy1, Dyk, y)

Description

Calculates real roots x of cubic spline(x) = y, given y It does so by getting prior estimates using rspline1, followed by a Newton Raphson procedure.

Input:

Output:

% x: vector with real roots (maximum length 3 * r - 1) % info: 1 if successsful, 0 if not

Example of application

See mydata_smooth