hard: Hard-thresholding

hardR Documentation

Hard-thresholding

Description

Perform hard-thresholding given the cut-off value.

Usage

hard(x, t)

Arguments

x

any numerical matrix or vector.

t

numeric, the amount to hard-threshold, i.e., sgn(x_{ij}) (|x_{ij}-t|)_+.


epca documentation built on July 26, 2023, 5:47 p.m.