Description Usage Arguments Value Examples
View source: R/frequency_fns.R
Takes a 2-D set of disaggregated points and smooths them out by placing a radial basis function at each point and using least-squares estimation for the ensuing weights. The constant trend is added on at the end.
1 | RBF_filter(data, si, varname = "z", smooth_var = 800^2)
|
data |
a data frame with fields |
si |
data frame containing fields |
varname |
the label of the column in |
smooth_var |
the variance of the radial basis function. |
the smoothed field values at locations in si
1 2 3 4 | data <- data.frame(x = c(1,1,2,2),y = c(1,2,1,2), z = c(1,2,3,4))
si <- as.data.frame(expand.grid(seq(0,3,by=0.1),seq(0,3,by=0.1)))
names(si) <- c("x","y")
si$z <- RBF_filter(data,si,varname="z",smooth_var=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.