nuclear_pen: function to compute the value of low-rank penalty term, i.e....

Description Usage Arguments Details Value Examples

View source: R/nuclear_pen.R

Description

function to compute the value of low-rank penalty term, i.e. nuclear norm.

Usage

1
nuclear_pen(x, lambda)

Arguments

x

x is the input m by n matrix

lambda

tuning parameter for nuclear norm penalty

Details

This function is to compute the low rank penalty via nuclear norm

Value

a float number that represents the value of penalty.

Examples

1
2
3
x <- matrix(stats::rnorm(20), 5, 4)
lambda <- 0.75
nuclear_pen(x, lambda)

kevinbai92/LSvarEstimate documentation built on May 8, 2020, 1:04 a.m.