bspline {multisensi} | R Documentation |
function to evaluate B-spline basis functions
Description
The bspline
function evaluates ith B-spline basis function of order m at the values in x, given knot locations in k
Usage
bspline(x = seq(0, 1, len = 101), k = knots, i = 1, m = 2)
Arguments
x |
vector or scalar, coordinate where to calculate the B-spline functions |
k |
vector of knot locations |
i |
integer; from 0 to length(knots)+1-m |
m |
integer, degree of the B-Splines |
Details
B-splines are defined by recursion :
if
; 0 else.
Value
values in x of the ith B-spline basis function of order m
Note
This is essentially an internal function for the multisensi package
References
Wood Simon, 2006. Generalized Additive Models: An Introduction with R Chapman and Hall/CRC.
[Package multisensi version 2.1-1 Index]