soft: Soft-thresholding function

Description Usage Arguments Value Examples

View source: R/soft.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(3, 1)
soft(-3, 1)
soft(-3, 4)

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