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(v, g, a)

Arguments

v

A vector of numerics

g

A factor describing the groups

a

The radius (>0) of the l1 ball

Value

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

Examples

1
projl1(1:10, 21)

vguillemot/csvd documentation built on May 17, 2019, 8:16 p.m.