proj12: Compute the projection of a vector onto the intersection of...

Description Usage Arguments Value Examples

View source: R/proj12.R

Description

Compute the projection of a vector onto the intersection of the l1 ball and the l2 ball.

Usage

1
proj12(x, a = 1)

Arguments

x

A vector of numerics

a

The radius (>0) of the l1 ball

Value

The "projection" of x onto B_1(a) \cap B_2.

Examples

1
proj12(1:10, 21)

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