normgroup: Compute the l1,2 group norm of a vector.

Description Usage Arguments Value Examples

View source: R/normgroup.R

Description

Compute the l1,2 group norm of a vector.

Usage

1
normgroup(u, g)

Arguments

u

A vector of numerics

g

A group factor

Value

The l_{1,2} group norm of u: ∑_g ||u_g||_2.

Examples

1
normgroup(c(0, 0,-0.5, 0.5), gl(2, 2))

vguillemot/sparseMCA documentation built on Nov. 5, 2019, 12:02 p.m.