vector.soft.thresh: Soft thresholding a vector

Description Usage Arguments Value

View source: R/method_inspect.R

Description

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

Usage

1
vector.soft.thresh(x, lambda)

Arguments

x

a vector of real numbers

lambda

soft thresholding value

Value

a vector of the same length


Tveten/capacc documentation built on Sept. 29, 2021, 5:31 a.m.