View source: R/update_simplex.R
projection_onto_simplex | R Documentation |
projection_onto_simplex
projects a vector unproj
onto a probabilistic simplex of sum bound
.
projection_onto_simplex(unproj, bound)
unproj |
A numeric vector. An unprojected vector |
bound |
A numeric. Sum of projected vector elements. |
A projected vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.