R/quantile_sf.R

Defines functions quantile_sf

Documented in quantile_sf

quantile_sf <- function(x, y, p)
{
    err <- x - y

    p * pmax(-err, 0) + (1 - p) * pmax(err, 0)
}

Try the scoringfunctions package in your browser

Any scripts or data that you put into this service are public.

scoringfunctions documentation built on April 4, 2025, 12:28 a.m.