polySpline
Convert a Spline to Piecewise Polynomial Spline Representation

Description

Converts a spline to its piecewise polynomial spline representation.

Usage

polySpline(object, ...)
## S3 method for class 'bSpline':
polySpline(object, ...)
## S3 method for class 'nbSpline':
polySpline(object, ...)
## S3 method for class 'pbSpline':
polySpline(object, ...)
## S3 method for class 'polySpline':
polySpline(object, ...)
as.polySpline(object, ...)

Arguments

object an object that inherits from class spline. Typically this is an object that inherits from bSpline.
... additional arguments to be passed to or from future functions.
Value
returns a piecewise-polynomial representation of the the input spline.
polySpline.bSplinereturns a list object of class c("polySpline", "spline"), that contains two components "knots" and "coefficients", with attribute "formula".
polySpline.nbSplinereturns object of class c("npolySpline", "polySpline", "spline").
polySpline.pbSplinereturns object of class c("ppolySpline", "polySpline", "spline") with component "period".
polySpline.polySplinereturns just the inputed object.
See Also
splineOrder, splineKnots, interpSpline, periodicSpline.
Examples
x <- interpSpline(c(1,2,3,4),c(5,9,11,12), bSpline=FALSE)
polySpline(x)
Package splines version 6.1.4-13
Package Index