tps.rbf | R Documentation |
Function to compute the thin-plate splines radial basis function for internal use by the function make.M().
tps.rbf(x, is.even)
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. |
This function computes the thin-plate spline radial basis function depending on the if d is odd or even.
The resulting value of the thin-plate spline radial basis function.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.