getSplineMatrix: Helper function to get normalized spline basis function...

View source: R/getSplineMatrix.R

getSplineMatrixR Documentation

Helper function to get normalized spline basis function matrix

Description

Takes in coordinates and degrees of freedom generates the normalized spline basis function matrix using the 'mgcv' 'smoothCon' function.

Usage

getSplineMatrix(coords, df = 5)

Arguments

coords

data frame or matrix of coordinates (either 1D or 2D)

df

degrees of freedom to use for constructing the thin plate regression spline. Default is 5.

Value

normalized spline basis function matrix


lulizou/spASE documentation built on May 22, 2024, 5:24 a.m.