breedr_splines | R Documentation |
Given the coordinates of the observations, and the degree, this function puts into place a sensible number of spline knots and computes the incidence matrix B and the covariance matrix U
breedr_splines(
coordinates,
n.knots = NULL,
autofill = TRUE,
degree = 3,
sparse = TRUE,
strategy = "uniformgrid",
...
)
coordinates |
matrix(-like) of observation coordinates |
n.knots |
numeric. Vector of length two with an integer number of knots in each dimension. |
autofill |
logical. If |
degree |
integer. Degree of the B-spline polynomials. |
sparse |
logical. If |
strategy |
character. Strategy for placing spline knots. Only
|
... |
Not used. |
Relies on splines::splineDesign()
, which uses a C function call to
compute the splines coefficients.
sparse
matrices take less memory, but also take longer to compute
with. This is probably convenient only for really big datasets in comparison
with RAM size. The covariance matrix is always stored in sparse format, as it
is particularly sparse.
A list with elements incidence.matrix
, structure.matrix
and structure.type
, which is a string indicating either
covariance
or precision
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.