gds_psuu.metric¶
Metric and Aggregation primitives for composable KPI construction.
Metric and Aggregation primitives for composable KPI construction.
Metric
¶
Bases: BaseModel
Per-run scalar extracted from simulation output.
Source code in packages/gds-psuu/gds_psuu/metric.py
Aggregation
¶
Bases: BaseModel
Combines per-run metric values across Monte Carlo runs.
Source code in packages/gds-psuu/gds_psuu/metric.py
final_value(key)
¶
Metric: value of a state variable at the final timestep of a run.
trajectory_mean(key)
¶
Metric: mean of a state variable over time for a single run.
max_value(key)
¶
Metric: maximum value of a state variable within a single run.
min_value(key)
¶
Metric: minimum value of a state variable within a single run.
percentile_agg(p)
¶
Aggregation: p-th percentile across runs.
Source code in packages/gds-psuu/gds_psuu/metric.py
probability_above(threshold)
¶
Aggregation: fraction of runs where metric exceeds threshold.
Source code in packages/gds-psuu/gds_psuu/metric.py
probability_below(threshold)
¶
Aggregation: fraction of runs where metric is below threshold.