SparseD: General difference matrices for ordinary B-splines

SparseDR Documentation

General difference matrices for ordinary B-splines

Description

Compute general difference matrices of order 1 to d - 1 for ordinary B-splines of order d.

Usage

SparseD(xt, d)

Arguments

xt

full knot sequence for ordinary B-splines (length(xt) >= 2 * d required).

d

B-spline order (d \ge 2 required).

Value

A list of sparse matrices (of "dgCMatrix" class), giving general difference matrices of order 1 to d - 1.

Author(s)

Zheyuan Li zheyuan.li@bath.edu

Examples

require(gps.mgcv)

## example with ordinary B-splines
xt <- c(0, 0, 0, 0, 1, 3, 4, 4, 4, 4)

SparseD(xt, d = 4)

ZheyuanLi/gps.mgcv documentation built on Sept. 19, 2024, 9:11 p.m.