Learn R Programming

vrnmf (version 1.0.2)

projection_onto_simplex: Project vector onto a probabilistic simplex.

Description

projection_onto_simplex projects a vector unproj onto a probabilistic simplex of sum bound.

Usage

projection_onto_simplex(unproj, bound)

Arguments

unproj

A numeric vector. An unprojected vector

bound

A numeric. Sum of projected vector elements.

Value

A projected vector.