hard: Hard-thresholding function

Description Usage Arguments Value Examples

View source: R/soft.R

Description

Hard-thresholding function

Usage

1
hard(a, lambda)

Arguments

a

scalar

lambda

non-negative thresholding parameter

Value

Hard-thresholded a

Examples

1
2
3
hard(3, 1)
hard(-3, 1)
hard(-3, 4)

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