Hard-threshold a matrix

Share:

Description

For a given matrix and a threshold, the function performs element-wise hard-thresholding based on the absolute value of each element.

Usage

1
thresh(C, alph, eps = 1e-10)

Arguments

C

a matrix on which the hard-thresholding is performed.

alph

threshold.

eps

effective zero.

Value

Returns the matrix C after hard-thresholding.

Author(s)

Haeran Cho