tps.rbf {DSSP} | R 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)
[Package DSSP version 0.1.1 Index]