stkde: stkde.

Description Usage Arguments Value Examples

Description

stkde.

Calculates a spatiotemporal kernel density estimation (STKDE) and returns it as a 3D-array

Usage

1
stkde(xyt_in, hs, ht, x_size, y_size, t_size)

Arguments

xyt_in

data.frame containing the x, y and t coordinates of the input data (projected coordinates).

hs

Spatial bandwidth in m.

ht

Temporal bandwidth.

x_size

Spatial x dimension of output array.

y_size

Spatial y dimension of output array.

t_size

Temporal t dimension of output array.

Value

arma::cube object containing all STKDE values.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
x <- runif (100) * 100
y <- runif (100) * 100
t <- runif (100) * 100
xyt <- data.frame (x, y, t)
stkde_val <- stkde (xyt_in = xyt, hs = 20, ht = 20, x_size = 15, y_size = 15,
t_size = 15)

## End(Not run)

karpfen/stkde documentation built on May 14, 2019, 8:54 a.m.