har_source_simulated: Simulated source

View source: R/har_online_sources.R

har_source_simulatedR Documentation

Simulated source

Description

Creates a replay source from an in-memory vector or data frame. This is the recommended source for reproducible streaming experiments and is the direct replacement for the simulated data flow used in the Nexus prototype.

Usage

har_source_simulated(data, timestamp = NULL, name = "simulated")

Arguments

data

Numeric vector, matrix, or data frame containing observations in time order.

timestamp

Optional vector with one timestamp per observation.

name

Source name.

Value

A har_source_simulated object.

Examples

source <- har_source_simulated(c(1, 2, 3))
obs <- next_observation(source)
obs$observation$value

harbinger documentation built on July 10, 2026, 5:07 p.m.