Learn R Programming

epca (version 1.1.0)

hard: 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|)_+\).