projgroup: Compute the projection of a vector onto the l1 ball.

Description Usage Arguments Value Examples

View source: R/projgroup.R

Description

Compute the projection of a vector onto the l1 ball.

Usage

1
projgroup(x = x, r = r, g = g)

Arguments

x

A vector of numerics

r

The radius (>0) of the l1 ball

g

A vector of groups

Value

The projection of v onto the l1 ball of radius a.

Examples

1
projgroup(x=1:10, r=3, g=1:10)

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