R/huber_sf.R

Defines functions huber_sf

Documented in huber_sf

huber_sf <- function(x, y, a)
{
    err <- x - y

    cf <- capping_function(t = err, a = a, b = a)

    cf * (err - cf/2)
}

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.