Learn R Programming

qrnn (version 2.0.1)

huber: Huber norm function

Description

Huber norm function providing a hybrid L1/L2 norm

Usage

huber(x, eps)

Arguments

x

numeric vector.

eps

epsilon value used in huber and related functions.

See Also

huber.prime

Examples

Run this code
# NOT RUN {
x <- seq(-10, 10, length=100)
plot(x, huber(x, eps=1))
# }

Run the code above in your browser using DataLab