Description Usage Arguments Details Value Note References
The bspline
function evaluates ith B-spline basis function of order m at the values in x, given knot locations in k
1 |
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 |
B-splines are defined by recursion : b_{i,0}(x) = 1 if k_j <= x < k_{j+1} ; 0 else.
b_{i,m}(x) = (x-k_i)/(k_{i+m}-k_i) b_{i,m-1}(x) + (k_{i+m+1}-x)(k_{i+m+1}-k_{i+1}) b_{i+1,m-1}(x)
values in x of the ith B-spline basis function of order m
This is essentially an internal function for the multisensi package
Wood Simon, 2006. Generalized Additive Models: An Introduction with R Chapman and Hall/CRC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.