vector.soft.thresh: Soft thresholding a vector

View source: R/linalg.R

vector.soft.threshR Documentation

Soft thresholding a vector

Description

entries of v are moved towards 0 by the amount lambda until they hit 0.

Usage

vector.soft.thresh(x, lambda)

Arguments

x

a vector of real numbers

lambda

soft thresholding value

Value

a vector of the same length


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