economy_stats#
Economy statistics events for aggregate metrics calculation.
This module defines economy-level statistics events that calculate and track aggregate economic indicators like average prices.
Examples
>>> import bamengine as be
>>> sim = be.Simulation.init(seed=42)
>>> sim.step() # Stats events run as part of default pipeline
>>> sim.ec.avg_mkt_price
1.05
Event Classes#
Update exponentially smoothed average market price. |