pywrdrb.post.metrics.calculate_reliability#
- pywrdrb.post.metrics.calculate_reliability(flow, target)#
Calculate reliability as the fraction of time flow exceeds the target.
Reliability is defined as the proportion of time steps where the simulated flow meets or exceeds the Minimum Required Flow (MRF) target.
- Parameters:
flow (pd.Series or np.ndarray) – Simulated streamflow time series.
target (pd.Series or np.ndarray) – Minimum flow requirement target time series.
- Returns:
reliability – Fraction of time the simulated flow exceeds the target.
- Return type:
float