projection_simplex | R Documentation |
Where Dn = \{ 0 <= x <= 1, sum(x) = 1\}
.
R translation of Loog's version of Xiaojing Ye's initial implementation.
The algorithm works row-wise.
projection_simplex(y)
y |
matrix with vectors to be projected onto the simplex |
projection of y onto the simplex
Algorithm is explained in http://arxiv.org/abs/1101.6081
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.