energy_methods.mix_rounding#
Reconcile rounded energy-consumption shares across nested reporting periods.
Shares are percentages of consumption, not of domestic generation. Reported-precision envelopes are not probabilistic confidence intervals.
Bases:
objectIncremental-month percentage and conservative rounding envelope.
- Parameters:
central_pct (float)
minimum_pct (float)
maximum_pct (float)
Check compatibility with a separately rounded monthly percentage.
- Parameters:
reported_pct (float)
rounding_pp (float)
- Return type:
bool
Infer monthly share from preceding and updated cumulative shares.
For preceding demand P, month demand M, preceding share p and cumulative share c, the incremental month’s percentage is c + (P/M) * (c-p). All corner combinations of reported rounding intervals are evaluated. Results are marginal bounds, not jointly attainable category balances.
- Parameters:
preceding_demand_twh (float)
new_month_demand_twh (float)
preceding_share_pct (float)
cumulative_share_pct (float)
share_rounding_pp (float)
preceding_demand_rounding_twh (float)
- Return type: