voltage_error#

popo.estimation.voltage_error(estimated, true)#

Summarise how far an estimate sits from the true state.

The maximum matters more than the mean for a compliance question: an estimator that is accurate on average but wrong at the worst customer will not detect the excursion that decides whether a limit is breached.

Parameters:
  • estimated (ndarray) – Estimated per-unit voltages.

  • true (ndarray) – True per-unit voltages.

Return type:

dict[str, float]

Returns:

Mapping with the mean absolute error, the maximum absolute error and the error at the bus whose true voltage is lowest.