standardize_st: Normalization over spatial and temporal scale

View source: R/seq.R

standardize_stR Documentation

Normalization over spatial and temporal scale

Description

Scale the value along spatial and temporal coordinates simultaneously.

Usage

standardize_st(scoord, tcoord, value, alpha = 0.5)

Arguments

scoord

a 1D vector of spatial coordinate

tcoord

a 1D vector of temporal coordinate

value

a value vector for each (scoord, tcoord)

alpha

a tuning parameter controling the weight of space and time

Examples

scoord <- rep(seq(6), 2)
tcoord <- rep(c(1,2), each=6)
value <- runif(6 * 2)
standardize_st(scoord, tcoord, log10(1+value))

caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.