make.bspline.basis {fctbases}R Documentation

Make B-spline basis

Description

Make B-spline basis

Usage

make.bspline.basis(knots, order = 4)

Arguments

knots

Knots of the basis, including endpoints

order

Spline order. Defaults to 4.

Value

Function of class "fctbasis"

See Also

Functional basis function, make.std.bspline.basis

Examples

## 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)



[Package fctbases version 1.1.1 Index]