Calculate matrix for obtaining coefficients of indefinite integral of B-spline.
They can be calculated as iqw=Mi %*% qw
. Here, iqw are coefficients
of the indefinite integral of B-spline,
Mi is the matrix returned by this function, and qw are the coefficients
of integrated B-spline.
As per the nature of the indefinite integral, this coefficients are defined up to
arbitrary additive constant.
imat(nqw = NULL, xk = NULL, n = NULL, f = NULL)
Numeric matrix of size nqw+1 x nqw
Integer scalar, row number of qw matrix (i.e. degree of freedom of a B-spline)
Numeric vector, knot positions
Integer scalar, B-spline polynomial order
Function from which previous parameters can be retrieved. If both f and any of previous parameters are given then explicitly set parameters take precedence over those retrieved from f.