interval_width: Calculate average interval width

Description Usage Arguments Value

View source: R/evaluation_functions.R

Description

Calculate average sharpness for central intervals from 10 oriented (smaller is better).

Usage

1
interval_width(fc, sun_up, intervals = seq(0.1, 0.9, by = 0.1))

Arguments

fc

A [valid time x quantile] matrix of probabilistic quantile forecasts, with column names giving the [0,1] percentiles of the forecast

sun_up

Logical vector of whether sun is up across the forecast times

intervals

A vector of central intervals in (0,1) whose widths should be calculated. Should correspond to available percentile columns in fc.

Value

a list of the intervals and their average widths


kdayday/solarbenchmarks documentation built on May 22, 2020, 10:33 p.m.