Description Usage Arguments Details Value Author(s) References See Also Examples
Find the zeros of a spline starting with the control polygon.
1 | splineZeros(object, maxiter)
|
object |
An object of class |
maxiter |
maximum number of iterations allowed so the signs of the control polygon match those of the spline. |
As described in Dierckx(1993, pp. 16-22):
1. cP <- controlPolygon(object)
2. Evaluate the spline at the zeros of the control polygon.
3. While there are sign changes in the control polygon that are not matched by sign changes in the spline, insert knots, recompute the control polygon and the spline at the zeros of the control polygon. Iterate.
4. Use 'uniroot' to obtain the zero in each interval containing a sign change in the spline.
a matrix with one column for each of the outputs of 'uniroot':
root |
estimated zero |
f.root |
value of the spline at 'root' |
iter |
number of iterations required by 'uniroot' |
estim.prec |
estimated precision for [root] |
Spencer Graves
Dierckx, P. (1993) Curve and Surface Fitting with Splines, Oxford Science Publications.
curfit
,insert.dierckx
,predict.dierckx
,uniroot
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.