splineKnots
Knot Vector from a Spline

Description

Gets the knot vector from a spline.

Usage

# Generic function
splineKnots(object)
## S3 method for class 'spline':
splineKnots(object)

Arguments

object any object inheriting from class "spline".

Details

splineKnots is a generic function to get the knots. Currently, only the invisible method splineKnots.spline is implemented for class "spline". There is no default method.
Value
returns the knot vector of a spline.
See Also
interpSpline, splineOrder
Examples
x <- c(1, 2, 3, 8, 20)
y <- log(x)
# piecewise polynomial representation has knots at 'x'
psp <- interpSpline(x, y, bSpline=FALSE) 
splineKnots(psp)
# B-spline representation has extra knots
bsp <- interpSpline(x, y, bSpline=TRUE) 
splineKnots(bsp)
Package splines version 6.1.1-7
Package Index