Create a monotone inverse of a monotone natural spline.
an object that inherits from class
An object of class
polySpline that contains the piecewise
polynomial representation of a function that has the appropriate
values and derivatives at the knot positions to be an inverse of the
spline represented by
object. Technically this object is not a
spline because the second derivative is not constrained to be
continuous at the knot positions. However, it is often a much better
approximation to the inverse than fitting an interpolation spline to
the y/x pairs.
Douglas Bates and Bill Venables
require(graphics) ispl <- interpSpline( women$height, women$weight ) bspl <- backSpline( ispl ) plot( bspl ) # plots over the range of the knots points( women$weight, women$height )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.