| posfun | R Documentation |
Taped penalty function if x < eps
posfun(x, eps)
x |
Numeric, the parameter |
eps |
Numeric, the threshold below which a penalty will be applied |
The penalty value is
\textrm{penalty} =
\begin{cases}
0.1 (x - \varepsilon)^2 & x \le \varepsilon\\
0 & x > \varepsilon
\end{cases}
Numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.