interaction_st_fast: Fast spatio-temporal interaction for the self-correcting...

View source: R/RcppExports.R

interaction_st_fastR Documentation

Fast spatio-temporal interaction for the self-correcting model

Description

Computes $g_i = exp(-alpha3 * sum_{j<i} 1[ ||x_i-x_j|| <= beta3 AND (t_i - t_j) >= gamma3 ])$ for i = 1..n, with g_0 = exp(0) = 1.

Usage

interaction_st_fast(data, params)

Arguments

data

NumericMatrix with columns (time, x, y). Assumed sorted by time ascending.

params

NumericVector length 3: (alpha3, beta3, gamma3)

Value

NumericVector length n of exp(-alpha3 * counts)


ldmppr documentation built on March 3, 2026, 9:06 a.m.