local_basis {FRK} | R Documentation |
Construct a set of local basis functions
Description
Construct a set of local basis functions based on pre-specified location and scale parameters.
Usage
local_basis(
manifold = sphere(),
loc = matrix(c(1, 0), nrow = 1),
scale = 1,
type = c("bisquare", "Gaussian", "exp", "Matern32"),
res = 1,
regular = FALSE
)
radial_basis(
manifold = sphere(),
loc = matrix(c(1, 0), nrow = 1),
scale = 1,
type = c("bisquare", "Gaussian", "exp", "Matern32")
)
Arguments
manifold |
object of class |
loc |
a matrix of size |
scale |
vector of length |
type |
either |
res |
vector of length |
regular |
logical indicating if the basis functions (of each resolution) are in a regular grid |
Details
This functions lays out local basis functions in a domain of interest based on pre-specified location and scale parameters. If type
is “bisquare”, then
and scale
is given by , the range of support of the bisquare function. If
type
is “Gaussian”, then
and scale
is given by , the standard deviation. If
type
is “exp”, then
and scale
is given by , the e-folding length. If
type
is “Matern32”, then
and scale
is given by , the function's scale.
See Also
auto_basis
for constructing basis functions automatically, and show_basis
for visualising basis functions.
Examples
library(ggplot2)
G <- local_basis(manifold = real_line(),
loc=matrix(1:10,10,1),
scale=rep(2,10),
type="bisquare")
## Not run: show_basis(G)