SoftThres {DebiasInfer}R Documentation

The soft-thresholding function

Description

This function implements the soft-threshold operator S_{\lambda}(x)=sign(x)\cdot (x-\lambda)_+.

Usage

SoftThres(theta, lamb)

Arguments

theta

The input numeric vector.

lamb

The thresholding parameter.

Value

The resulting vector after soft-thresholding.

Author(s)

Yikun Zhang, yikunzhang@foxmail.com

Examples

a = c(1,2,4,6)
SoftThres(theta=a, lamb=3)


[Package DebiasInfer version 0.2 Index]