powered by
Taped penalty function if x < eps
x < eps
posfun(x, eps)
The penalty value is
$$ \textrm{penalty} = \begin{cases} 0.1 (x - \varepsilon)^2 & x \le \varepsilon\\ 0 & x > \varepsilon \end{cases} $$
Numeric
Numeric, the parameter
Numeric, the threshold below which a penalty will be applied