Learn R Programming

mig (version 2.0)

proj_hs: Orthogonal projection matrix onto the half-space

Description

The orthogonal projection matrix \(P\) has unit determinant and transforms an n by d matrix by taking \(x * P\). The components of the first column vector of the resulting matrix are strictly positive.

Usage

proj_hs(beta, inv = FALSE)

Value

a d by d orthogonal projection matrix

Arguments

beta

vector defining the half-space

inv

logical; if TRUE, return the inverse matrix