View source: R/orthogonalBsplines.R
SplineBasis | R Documentation |
SplineBasis
Objects.The function to create SplineBasis
and OrthogonalSplineBasis
Objects
SplineBasis(knots, order=4, keep.duplicates=FALSE) OrthogonalSplineBasis(knots, ...) OBasis(...)
knots |
The full set of knots used to define the basis functions. |
order |
Order of the spline fit.(degree= order-1) |
keep.duplicates |
Should duplicate interior knots that could cause computation problem be kept or removed. Defaults to false, which removes duplicate knots with a warning if duplicate interior knots are found. |
... |
Other arguments either ignored or passed onto other functions. |
SplineBasis
produces an object representing the basis functions used in spline fitting. Provides a compact easily evaluated representation of the functions. Produces a class of object SplineBasis
.
OrthogonalSplineBasis
is a shortcut to obtain a set of orthogonalized basis functions from the knots. OBasis
is an alias for OrthogonalSplineBasis
. Both provide an object of class OrthogonalSplineBasis
. The class OrthogonalSplineBasis
inherits directly from SplineBasis
meaning all functions that apply to SplineBasis
functions also apply to the orthogonalized version.
Object of class SplineBasis
or OrthogonalSplineBasis
General matrix representations for B-splines Kaihuai, Qin, The Visual Computer 2000 16:177–186
SplineBasis
, spline
, orthogonalsplinebasis-package
knots<-c(0,0,0,0:10,10,10,10) plot(SplineBasis(knots)) obase<-OBasis(knots) plot(obase) dim(obase)[2] #number of functions evaluate(obase, 1:10-.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.