soft: Soft-thresholding of a scalar a at level lambda

Description Usage Arguments Value Examples

View source: R/FunctionsALasso.R

Description

Soft-thresholding of a scalar a at level lambda

Usage

1
soft(a, lambda)

Arguments

a

scalar to be soft-thresholded

lambda

level of soft thresholding

Value

soft-thresholded value

Examples

1
2
3
a = 2
lambda = 1
soft(a , lambda)

Saptati-Datta/AdapLasso documentation built on Dec. 18, 2021, 12:57 p.m.