powered by
L2 proximal operator
proxL2(x, lambda)
A vector of p numerical values.
numeric value for the L2 penalty parameter.
A numeric vector soft-thresholded by \(\lambda\) as a group, which is \((1-\frac{\lambda \sqrt{p}}{\sqrt{x_1^2+\cdots+x_p^2}})_{+}\bm{x}\).
ma2019structuralsmog
# NOT RUN { proxL2(rnorm(6,2,1),0.5) # }
Run the code above in your browser using DataLab