Learn R Programming

bspline (version 2.3.0)

imat: Integration matrix of B-spline

Description

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.

Usage

imat(nqw = NULL, xk = NULL, n = NULL, f = NULL)

Value

Numeric matrix of size nqw+1 x nqw

Arguments

nqw

Integer scalar, row number of qw matrix (i.e. degree of freedom of a B-spline)

xk

Numeric vector, knot positions

n

Integer scalar, B-spline polynomial order

f

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.