soft: Element-wise Soft Thresholding Function for Matrix

View source: R/RcppExports.R

softR Documentation

Element-wise Soft Thresholding Function for Matrix

Description

Soft thresholding function for Matrix

Usage

soft(A, a, diag = 0L)

Arguments

A

Matrix

a

scalar

diag

Should diagonal elements of the Matrix be thresholding? Default is FALSE.

Value

Matrix after threholding


cescwang85/EQUAL documentation built on Nov. 26, 2022, 1:27 a.m.