THINSp: Thin-Plate Spline

Description Usage Arguments Value Examples

View source: R/THINSp.R

Description

This code computes the thin-plate spline function f(s) = s^2 log(s) for 1-dimensional spatial locations

Usage

1
THINSp(locs, knots, tol = 0)

Arguments

locs

n-dimensional vector of locations

knots

r-dimensional vector of knots

tol

thresholds small values of the elements of psi to be zero. Default is no threshold.

Value

psi nxr matrix of basis functions

Examples

1
2
3
4
5
6
7
8
#example two dimensional separable thin-plate spline
points1 = seq(0,1,length.out=1001)
points1=points1[2:1001]
r = 10
knots = seq(0,1,length.out=r)
G1 = THINSp(as.matrix(points1,m,1),as.matrix(knots,r,1))

G=G1 %x% G1

JonathanBradley28/CM documentation built on July 8, 2021, 9:59 a.m.