stcfgneiting16: Gneiting-16 SpatioTemporal Correlation Structure

Description Usage Arguments Examples

Description

Provides spatiotemporal correlation structure function proposed by Gneiting (2002) (Eq.16 at p. 594)

Usage

1
stcfgneiting16(t, s, a, c, alpha, beta, nu, tau)

Arguments

t

time lag

s

spatial lag (distance)

a

nonnegative scaling parameter of time

c

nonnegative scaling parameter of space

alpha

smoothness parameter of time. Valid range: (0,1]

beta

space-time interaction parameter. Valid range: [0,1]

nu

smoothness parameter of space. Valid range: >0

tau

space-time interaction parameter. Valid range: ≥ 1 (for 2-dimensional fields)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
library(CoSMoS)
library(plotly)

## specify grid of spatial and temporal lags
d <- 31
st <- expand.grid(0:(d - 1),
                  0:(d - 1))

## get the STCS
g16 <- stcfgneiting16(t = st[, 1],
                      s = st[, 2],
                      a = 1/50,
                      c = 1/10,
                      alpha = 1,
                      beta = 1,
                      nu = 0.5, tau = 1)

## visualize the STCS

g16.m <- matrix(g16,
                nrow = d)

plot_ly(z = ~g16.m) %>%
    add_surface() %>%
    layout(
        scene = list(
            xaxis = list(title = "Time lag"),
            yaxis = list(title = "Distance"),
            zaxis = list(title = "STCF")
        )
    ) %>%
    hide_colorbar()

TycheLab/CoSMoS documentation built on Feb. 2, 2021, 3:49 p.m.