Learn R Programming

geospt (version 1.0-4)

RBF.phi: radial basis function evaluation

Description

generate the value associated with radial basis functions; gaussian GAU), exponential (EXPON), trigonometric (TRI), thin plate spline (TPS), completely regularized spline (CRS), spline with tension (ST), inverse multiquadratic (IM), and multiquadratic (M)

Usage

RBF.phi(distance, eta, func)

Value

value obtained from the radial basis function generated with a distance, a eta smoothing parameter, and a function "GAU", "EXPON", "TRI", "TPS", "CRS", "ST", "IM" or "M"

Arguments

distance

corresponds to the Euclidean distance between two points in space

eta

the optimal smoothing parameter is found by minimizing the root-mean-square prediction errors using cross-validation

func

radial basis function model type, e.g. "GAU", "EXPON", "TRI", "TPS", "CRS", "ST", "IM" and "M", are currently available

Examples

Run this code
data(preci) 
d1 <- dist(rbind(preci[1,],preci[2,])) 
RBF.phi(distance=d1, eta=0.5, func="TPS")

Run the code above in your browser using DataLab