splineOrder
Determine the Order of a Spline

Description

Gets the order of a spline.

Usage

# Generic function
splineOrder(object)
## S3 method for class 'bSpline':
splineOrder(object)
## S3 method for class 'polySpline':
splineOrder(object)

Arguments

object an object of class "bSpline" or "polySpline".

Details

splineOrder is a generic function used to get the order of a spline. Currently, only the invisible methods splineOrder.bSpline and splineOrder.polySpline are implemented for class "bSpline" and "polySpline", respectively. There is no default method.
Value
returns the order of the spline. The order is one more than the degree of of the polynomials in the spline.
See Also
interpSpline, splineKnots
Examples
x <- c(1, 2, 3, 5, 8, 13, 31)
y <- sqrt(x)
bsp <- interpSpline(x, y, bSpline = TRUE) # B-spline representation
splineOrder(bsp)
psp <- polySpline(bsp) # piecewise-polynomial representation
splineOrder(psp)
Package splines version 6.1.4-13
Package Index