Learn R Programming

epca (version 1.1.0)

norm.Lp: Element-wise Matrix Norm

Description

Compute element-wise matrix Lp-norm. This is a helper function to shrinkage().

Usage

norm.Lp(x, p = 1)

Value

numeric(1), the absolute sum of all elements.

Arguments

x

a matrix or Matrix.

p

numeric(1), the p for defining the Lp norm.