soft: Soft-thresholding operator

View source: R/soft.r

softR Documentation

Soft-thresholding operator

Description

Soft-thresholding operator

Usage

soft(x, l)

Arguments

x

The thing to be thresholded

l

The threshold; must either be length 1 or same langth as x

Examples

soft(-10:10, 2.5)
soft(rep(5.5, 10), 1:10)
soft(matrix(1:30, ncol=3), 10)


pbreheny/breheny documentation built on Sept. 5, 2024, 6:45 p.m.