R/misc.R
compute_RPS.Rd
Compute RPS for a single forecast
compute_RPS(forecast, outcome)
Vector of length N (forecast).
Index of the true outcome (between 1 and N).
RPS (numeric scalar)
compute_RPS(c(.2, .5, .3), 2) #> [1] 0.065