View source: R/basis_functions.R
make.bspline.basis | R Documentation |
Make B-spline basis
make.bspline.basis(knots, order = 4)
knots |
Knots of the basis, including endpoints |
order |
Spline order. Defaults to 4. |
Function of class "fctbasis"
Functional basis function, make.std.bspline.basis
## B-spline with equidistant knots with 13 basis function bf <- make.bspline.basis(knots = 0:10, order = 4) ## B-spline of order 2 (ie. a linear approximation) with some uneven knots bf <- make.bspline.basis(knots = c(-1.3, 0, 0.5, 0.7, 1.1), order = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.