soft: Soft-thresholding function

Description Usage Arguments Value Examples

Description

function to do soft-thresholding of a scalar

Usage

1
soft(a, lambda)

Arguments

a

scalar to be thresholded at level lambda

lambda

threshold value, should not be non-negative

Value

Soft-thresholding value of a

Examples

1
soft(3,1)

jiayiwang1017/Test_package documentation built on May 28, 2019, 6:32 p.m.