f_func: loss function

Description Usage Arguments Details Value Examples

View source: R/f_func.R

Description

Compute the value of quadratic loss function

Usage

1
f_func(x, A, b)

Arguments

x

A coefficient vector, it equals to the sparse component plus the low rank component.

A

The design matrix

b

The response vector/matrix

Details

This function aims to compute the value of quadratic loss function in the low rank plus sparse model. It can be changed by other norm or loss.

Value

A value of loss function

Examples

1
2
3
4
5
set.seed(1)
x <- stats::rnorm(10)
A <- matrix(stats::rnorm(200), 20, 10)
b <- stats::rnorm(20)
f_func(x, A, b)

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