ProximalElastic: Proximal Mapping for Elastic Net

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Proximal Mapping for Elastic Net

Usage

1
ProximalElastic(z, lambda = 0, alpha = 1)

Arguments

z

input numeric object

lambda

regularization coefficient

alpha

elastic net mixing parameter between 0 (ridge) and 1 (lasso)

Value

values after proximal mapping

Examples

1
ProximalElastic(c(-1, 0, 2, 3), 1)

XiaoqiLu/PhD-Thesis documentation built on March 1, 2021, 10:49 a.m.