View source: R/metrics-quantile.R
interpolate_median | R Documentation |
Internal function to interpolate the median prediction if it is not available in the given quantile levels. This is done using linear interpolation between the two innermost quantiles.
interpolate_median(predicted, quantile_level)
predicted |
Vector of length N (corresponding to the number of quantiles) that holds predictions. |
quantile_level |
Vector of of size N with the quantile levels for which predictions were made. Note that if this does not contain the median (0.5) then the median is imputed as being the mean of the two innermost quantiles. |
scalar with the imputed median prediction
Overview of required input format for quantile-based forecasts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.