bispline_incidence | R Documentation |
Compute the incidence matrix as a tensor product of B-spline bases, given the knots, coordinates and order.
bispline_incidence(knots, xx, ord, sparse)
knots |
list with numeric vectors of knot positions with non-decreasing values for each dimension |
xx |
2-column matrix of coordinates at which to evaluate the bidimensional splines |
ord |
integer order of the spline functions (equals degree + 1) |
sparse |
logical indicating if the result should be given in sparse format |
Need at least 2*ord -1 knots (typically, 7) but in fact, we need at least 2*ord unless we set outer.ok = TRUE in splineDesign (which we do not want)
Eilers, P H C and B D Marx (2003). Multivariate calibration with temperature interaction using two-dimensional penalized signal regression. Chemometrics and Intelligent Laboratory Systems 66(2), 159-174.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.