Skip to contents

Applies explicit clock models or recorded XDF/shared-event evidence without interpolating sample values. Authoritative raw and master-domain timestamps are appended to each stream's row data.

Usage

syncStreams(
  x,
  master = NULL,
  models = NULL,
  shared_events = NULL,
  dejitter = FALSE,
  max_residual_seconds = NULL
)

Arguments

x

A PhysioExperiment::MultiPhysioExperiment.

master

Exact master stream key, or NULL for deterministic choice.

models

Optional uniquely named StreamClockModel list.

shared_events

Optional exact event_id, stream, timestamp table.

dejitter

Whether to append a nominal-grid timestamp column.

max_residual_seconds

Optional non-negative residual gate.

Examples

if (FALSE) { # \dontrun{
# Requires a multi-stream container (MultiPhysioExperiment), e.g. from
# readXDF(); `master` names the reference stream key.
synced <- syncStreams(container, master = "eeg")
} # }