Huber norm approximation to the ramp function

Share:

Description

Huber norm approximation to the ramp function.

Usage

1
hramp(x, lower, eps)

Arguments

x

numeric vector.

lower

left censoring point.

eps

epsilon value used in huber and related functions.

See Also

hramp.prime, huber

Examples

1
2
x <- seq(-10, 10, length = 100)
plot(x, hramp(x, lower = 0, eps = 1))