vector.hard.thresh: Hard thresholding a vector

View source: R/linalg.R

vector.hard.threshR Documentation

Hard thresholding a vector

Description

entries of v that are below lambda are set to 0.

Usage

vector.hard.thresh(x, lambda)

Arguments

x

a vector of real numbers

lambda

hard thresholding value

Value

a vector of the same length


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.