| S.based.functions | R Documentation |
Computes kernel-based estimates of the spatio-temporal intensity and related
separability diagnostics, either on a regular spatio-temporal grid ("pixels")
or at the observed event locations ("points").
S.based.functions(
X,
s.region,
t.region,
owin = NULL,
at = c("pixels", "points"),
n.grid = c(25L, 25L, 20L),
epsilon = NULL,
delta = NULL,
output = "all"
)
X |
Numeric matrix/data.frame with three columns giving |
s.region |
Numeric matrix with two columns giving polygon vertices of the spatial window. |
t.region |
Numeric vector of length 2 giving the temporal window |
owin |
Optional spatial window of class |
at |
Character string: |
n.grid |
Integer vector of length 3 giving the grid resolution in |
epsilon |
Optional numeric scalar (>0). Spatial bandwidth. If |
delta |
Optional numeric scalar (>0). Temporal bandwidth. If |
output |
Character string selecting which component to return. Use |
The function is a wrapper that (i) validates inputs, (ii) computes bandwidths and
Gaussian edge-correction masses via calc.bandwidths.and.edgecorr, and
(iii) delegates the actual estimation to estimate.intensity.pixel or
estimate.intensity.point.
When at="points", spatial/temporal profiles such as S.space and S.time are typically
not defined and are returned as NULL by the pointwise routine.
If output="all", returns the full list produced by the chosen computation routine, augmented with
epsilon and delta.
If output is a single component name, returns a list with:
The requested component.
Spatial bandwidth used.
Temporal bandwidth used.
Coordinates returned by the underlying routine (may be NULL).
X <- cbind(stats::runif(50), stats::runif(50), stats::runif(50))
s.region <- matrix(c(0,0, 1,0, 1,1, 0,1), ncol = 2, byrow = TRUE)
t.region <- c(0, 1)
res_all <- S.based.functions(X, s.region, t.region, at = "points")
res_Sfun <- S.based.functions(X, s.region, t.region, at = "points", output = "S.fun")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.