crps: Continuous ranked probability score.

Description Usage Arguments Value Examples

View source: R/performanceScore.R

Description

Process the CRPS score for a given probability prediction compared to an observed value. The non-exceedence freequency is processed as follows: F(x) = (r-a)/(n+b)

Usage

1
crps(x, x0, a = 0.44, b = 0.12, w = NA)

Arguments

x

Vector of length n (number of members / analogues).

x0

Observed value.

a, b

Constants that have a law-dependent optimum from which the samples are derived.

w

Weight for every analogue day

Value

Value of the CRPS score.

Examples

1
2
3
obs <- 25.8
precip <- c(35.3, 31.5, 14.9, 30.0, 3.0, 4.2, 15.1, 1.9, 1.2, 2.1)
result <- atmoswing::crps(precip, obs, a=0.375, b=0.25)

atmoswing/R-toolbox documentation built on Nov. 8, 2019, 3:49 p.m.