powered by
Penalty function using the \(L^q\) norm, i.e., \(p_{\lambda}(x) = \lambda \| x\|^q\).
Lq(x, lambda = 1, q = 1)
numeric.
non-negative scalar, shrinkage parameter.
non-negative scalar, norm parameter.
penalty for values of x.
x
# NOT RUN { Lq(-5:5) curve(Lq(x, q = 2), from = -5, to = 5) # }
Run the code above in your browser using DataLab