Compute resolution of forecasts, normalised by the uncertainty
Source:R/misc.R
compute_resolution.Rd
The resolution is computed as the mean squared distance to a base rate (reference forecast) and is then normalised by the uncertainty (maximum resolution). This means the output is between 0 and 1, 1 corresponding to the maximum resolution.
Examples
compute_resolution(seq(0, 1, .1), 0.5)
#> [1] 0.4