Learn R Programming

lddmm (version 0.4.2)

B_basis: Spline Basis Functions

Description

Construct the J basis functions for the splines evaluated on a grid.

Usage

B_basis(xgrid, knots)

Value

n x (K+1) - matrix representing the value of each basis function evaluated on xgrid

Arguments

xgrid

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

knots

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