projection_onto_simplex {vrnmf} | R Documentation |
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.
[Package vrnmf version 1.0.2 Index]