powered by
Perform hard-thresholding given the cut-off value.
hard(x, t)
any numerical matrix or vector.
matrix
vector
numeric, the amount to hard-threshold, i.e., \(sgn(x_{ij}) (|x_{ij}-t|)_+\).
numeric