project_halfspace: Projection onto a halfspace

Description Usage Arguments Examples

Description

project_halfspace computes the Euclidean projection of a point onto a closed half-space. The function returns the projection onto the set

Usage

1

Arguments

x

Point to project

a

is the normal vector

b

is the threshold

Examples

1
2
3
4
5
6
7
set.seed(12345)
p <- 3
a <- matrix(rnorm(p),p,1)
a <- a/norm(a,'f')
b <- runif(1)
x <- matrix(rnorm(p),p,1)
y <- project_halfspace(x,a,b)

jasonxu90/splitFeas documentation built on May 31, 2019, 8:43 a.m.