posfun: Quadratic penalty function

View source: R/misc.R

posfunR Documentation

Quadratic penalty function

Description

Taped penalty function if x < eps

Usage

posfun(x, eps)

Arguments

x

Numeric, the parameter

eps

Numeric, the threshold below which a penalty will be applied

Value

The penalty value is

\textrm{penalty} = \begin{cases} 0.1 (x - \varepsilon)^2 & x \le \varepsilon\\ 0 & x > \varepsilon \end{cases}

Numeric


multiSA documentation built on March 21, 2026, 1:06 a.m.