Learn R Programming

DSSP (version 0.1.1)

tps.rbf: 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)

Value

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

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.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab