Computes connectivity matrices over sliding time windows.
Usage
slidingWindowConnectivity(
x,
window_size = 256L,
step = 64L,
method = c("correlation", "coherence", "plv"),
...
)Examples
set.seed(123)
pe <- PhysioExperiment(
assays = list(raw = matrix(rnorm(1000 * 4), nrow = 1000, ncol = 4)),
samplingRate = 100
)
dyn_conn <- slidingWindowConnectivity(pe, window_size = 200, step = 50)