hard: Hard-thresholding function

Description Usage Arguments Value Examples

View source: R/Thresholding.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(2, 1)
hard(-2, 1)
hard(2, 3)

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