psi.huber: Derivative of Huber's loss function.

View source: R/RBF-fn.R

psi.huberR Documentation

Derivative of Huber's loss function.

Description

This function evaluates the first derivative of Huber's loss function.

Usage

psi.huber(r, k = 1.345)

Arguments

r

a vector of real numbers

k

a positive tuning constant.

Details

This function evaluates the first derivative of Huber's loss function.

Value

A vector of the same length as x.

Author(s)

Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez

Examples

x <- seq(-2, 2, length=10)
psi.huber(r=x, k = 1.5)


RBF documentation built on Sept. 1, 2023, 1:07 a.m.