ParamContext: Construct a ParamContext

View source: R/contexts.R

ParamContextR Documentation

Construct a ParamContext

Description

Encapsulates one parameter realization for a simulation run. Resolved once per draw by a ParamSource (or supplied directly) and injected into every bundle callback that accepts a param_ctx argument.

Usage

ParamContext(draw_id, params, provenance = NULL)

Arguments

draw_id

Positive integer-valued numeric scalar identifying this parameter draw. Whole-valued doubles such as 5.0 are accepted and stored as integers; fractional, non-finite, non-positive, and out-of-range values are rejected rather than truncated.

params

Named list of concrete parameter values.

provenance

Optional character scalar labelling the source of this draw (e.g., "posterior_draw_42").

Value

A list of class "ParamContext".


fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.