View source: R/bayes_hmc_utils.R
| create_basismatrix | R Documentation |
Evaluates a B-spline basis of nbasis functions of order norder on
length(x) equally spaced points spanning the range of x. The knot
sequence is nbasis - norder + 2 equally spaced breakpoints with
norder-fold multiplicity at each end of the range.
create_basismatrix(x, nbasis, norder = 4)
x |
vector of argument values; only its range and length are used |
nbasis |
number of basis functions |
norder |
order of the B-splines, i.e. degree + 1 (default: 4, cubic) |
A length(x) by nbasis matrix of basis function values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.