Package: fluxCore 2.1.0

fluxCore: Probabilistic Simulation of Single-Entity Systems in Irregular Time

A foundation for probabilistic simulation of single-entity systems in which events occur at irregular times and each event updates only a small, sparse subset of the entity's state. Models are assembled from a declared schema and a bundle of callback functions for event proposal, state transition, and stopping, with their contracts validated before simulation. Supports competing event processes, schema-declared decision points with user-supplied policies, typed parameter draws for representing uncertainty, and optional trajectory recording for auditing simulated decisions. Designed to be domain agnostic: this package contains no model of any particular system, only the scaffolding for building one.

Authors:Jarrod Dalton [aut, cre]

fluxCore_2.1.0.tar.gz
fluxCore_2.1.0.zip(r-4.7-any)fluxCore_2.1.0.zip(r-4.6-any)fluxCore_2.1.0.zip(r-4.5-any)
fluxCore_2.1.0.tgz(r-4.6-any)fluxCore_2.1.0.tgz(r-4.5-any)
fluxCore_2.1.0.tar.gz(r-4.7-any)fluxCore_2.1.0.tar.gz(r-4.6-any)
fluxCore_2.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
fluxCore/json (API)

# Install 'fluxCore' in R:
install.packages('fluxCore', repos = c('https://j-e-dalton.r-universe.dev', 'https://cloud.r-project.org'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.28 score 19 scripts 187 downloads 41 exports 1 dependencies

Last updated from:a8eec1842c. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK140
source / vignettesOK215
linux-releaseOK142
macos-releaseOK196
macos-oldrelOK138
windows-develOK82
windows-releaseOK76
windows-oldrelOK87
wasm-releaseOK127

Exports:ActionEventas_time_specblock_varscheck_derivedcombine_updatescompose_bundlesDecisionPlanDecisionPointdeclare_variablederivedp_firesEngineEntityEnvironmentContexteventGroupedDecisionPointlag_ofload_modelParamContextrun_cohortRuntimeContextschema_assert_levelsschema_assert_typesschema_assert_varsschema_blocksschema_validateschema_validator_integerschema_validator_levelsschema_validator_numericschema_var_infoset_schemaset_varsset_vars_from_namedSimContextstate_summary_defaulttime_from_modeltime_spectime_to_modeltrajectory_tableTrajectoryRecordupdate_block

Dependencies:R6

Readme and manuals

Help Manual

Help pageTopics
Construct an ActionEventActionEvent
Coerce to time_specas_time_spec
Get variable names in a schema blockblock_vars
Register derived variables on an Entitycheck_derived
Combine multiple update lists into one atomic update payloadcombine_updates
Compose ModelBundles and transition componentscompose_bundles
Construct a coordinated decision planDecisionPlan
Construct a DecisionPoint specificationDecisionPoint
Target a variable for history-derived featuresdeclare_variable
Define a derived featurederive
Test whether a DecisionPoint fires for a given eventdp_fires
EngineEngine
EntityEntity
Construct an EnvironmentContextEnvironmentContext
Feature target: event typeevent
Construct a grouped decision pointGroupedDecisionPoint
Define a lagged feature from variable historylag_of
Assemble and validate a simulation model (v2 API)load_model
Construct a ParamContextParamContext
Run a cohort of entities (serial or parallel) with optional global parameter drawsrun_cohort
Construct a RuntimeContextRuntimeContext
Assert that levels are declared in the schemaschema_assert_levels
Assert that variables have allowed schema typesschema_assert_types
Assert that variables exist in a schemaschema_assert_vars
List unique schema blocksschema_blocks
Validate an entity schemaschema_validate
Create an integer schema validatorschema_validator_integer
Create a levels-based schema validatorschema_validator_levels
Create a numeric schema validatorschema_validator_numeric
Get schema metadata for variablesschema_var_info
Build or extend a fluxCore schema with hybrid shorthandset_schema
Create a named list of updates from variable names and valuesset_vars
Create a named list of updates from a named vectorset_vars_from_named
Construct a SimContextSimContext
Default state summary function for TrajectoryRecordstate_summary_default
Convert numeric model time to calendar timetime_from_model
Compile and validate canonical time settingstime_spec
Convert calendar time to numeric model timetime_to_model
Compile trajectory records into a data frametrajectory_table
Construct a TrajectoryRecordTrajectoryRecord
Block-oriented state updates for vectorized modelsupdate_block