tps.rbf: TPS radial basis function

View source: R/make_M.R

tps.rbfR Documentation

TPS radial basis function

Description

Function to compute the thin-plate splines radial basis function for internal use by the function make.M().

Usage

tps.rbf(x, is.even)

Arguments

x

is a Euclidean distance between two points.

is.even

is a logical argument indicating TRUE if the dimension of the space where the thin-plate spline smoother is being fitted is even.

Details

This function computes the thin-plate spline radial basis function depending on the if d is odd or even.

Value

The resulting value of the thin-plate spline radial basis function.

Examples

## Use the Meuse River dataset from the package 'gstat'

library(sp)
library(gstat)
data(meuse.all)
coordinates(meuse.all) <- ~ x + y
X <- scale(coordinates(meuse.all))
D <- as.matrix(dist(X))
K <- tps.rbf(D, TRUE)

gentrywhite/DSSP documentation built on Aug. 5, 2022, 12:33 p.m.