solarforecastarbiter.metrics.deterministic.over¶
-
solarforecastarbiter.metrics.deterministic.
over
(obs, fx)[source]¶ The OVER metric.
\[\text{OVER} = \int_{p_\min}^{p_\max} D_n^*(p) dp\]where:
\[\begin{split}D_n^* = \begin{cases} (D_n - V_c) & D_n > V_c \\ D_n^* = 0 & \text{otherwise} \end{cases}\end{split}\]with D_n and V_c defined the same as in KSI.
Parameters: - obs ((n,) array-like) – Observed values.
- fx ((n,) array-like) – Forecasted values.
Returns: over (float) – The OVER metric of the forecast.
Notes
The calculation of the empirical CDF uses a right endpoint rule (the default of the statsmodels ECDF function). For example, if the data is [1.0, 2.0], then ECDF output is 0.5 for any input less than 1.0.