soft: Soft-thresholding function

Description Usage Arguments Value Examples

View source: R/Thresholding.R

Description

Soft-thresholding function

Usage

1
soft(a, lambda)

Arguments

a

scalar

lambda

non-negative thresholding parameter

Value

soft-thresholded a

Examples

1
2
3
soft(2, 1)
soft(-2, 1)
soft(2, 3)

irinagain/RpackageExampleExtra documentation built on Dec. 20, 2021, 7:59 p.m.