svt: Singular value thresholding

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/admm_nmr.R View source: R/fast_admm_nmr.R

Description

This function performs singular value thresholding. Singular value thresholding is used to update y that cannot be represented in closed form. Entering the parameters mu, A (x), B, and Z returns the y after performing singular value thresholding.

Usage

1
svt(mu, A_x, B, Z)

Arguments

mu

"mu" is a parameter that must be set when defining a function.

A_x

"A_x" is a result obtained by correlation coefficient x with A, a test image data set. This can be made using the coef_img function.

B

"B" is an image of a face with occlusion.

Z

"Z" can be found using A, B, and y. It can be calculated naturally during algorithm implementation.

Value

svt_out

"svt_out" is the y after performing singular value thresholding.

Author(s)

Jisun Kang

References

https://ieeexplore.ieee.org/document/7420697

See Also

https://arxiv.org/abs/0810.3286

Examples

1
2
3
4
5
6
7
8
function (mu, A_x, B, Z)
{
    svt_in <- A_x - B + 1/mu * Z
    result_svd <- svd(svt_in)
    d <- pmax(result_svd$d - 1/mu, 0)
    svt_out <- result_svd$u %*% d %*% result_svd$v
    return(svt_out)
  }

riverKangg/NuclearNormClassifier documentation built on Jan. 1, 2020, 10:08 p.m.