B_basis: Spline Basis Functions

View source: R/utils.R

B_basisR Documentation

Spline Basis Functions

Description

Quadratic B-spline basis on equally spaced knots (supplement §S.1), evaluated on a grid. Points outside ⁠[min(knots), max(knots)]⁠ get a row of zeros.

Usage

B_basis(xgrid, knots)

Arguments

xgrid

grid where we want to evaluate the spline functions (vector of length n)

knots

vector of equally spaced knots for the splines (vector of length K)

Value

n x (K+1) matrix with the value of each basis function on xgrid. At a knot, exactly two adjacent basis functions are non-zero, both equal to 1/2.


lddmm documentation built on Oct. 23, 2026, 5:07 p.m.