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.bSpline | returns a list object of class c("polySpline", "spline"),
that contains two components "knots" and "coefficients", with attribute "formula". |
polySpline.nbSpline | returns object of class c("npolySpline", "polySpline", "spline"). |
polySpline.pbSpline | returns object of class c("ppolySpline", "polySpline", "spline")
with component "period". |
polySpline.polySpline | returns just the inputed object. |
See Also
Examples
x <- interpSpline(c(1,2,3,4),c(5,9,11,12), bSpline=FALSE)
polySpline(x)