proxL2: L2 proximal operator

Description Usage Arguments Value Author(s) References Examples

View source: R/RcppExports.R

Description

L2 proximal operator

Usage

1
proxL2(x, lambda)

Arguments

x

A vector of p numerical values.

lambda

numeric value for the L2 penalty parameter.

Value

A numeric vector soft-thresholded by λ as a group, which is (1-\frac{λ √{p}}{√{x_1^2+\cdots+x_p^2}})_{+}\bm{x}.

Author(s)

Chong Ma, chongma8903@gmail.com.

References

\insertRef

ma2019structuralsmog

Examples

1
proxL2(rnorm(6,2,1),0.5)

smog documentation built on Aug. 10, 2020, 5:07 p.m.