Description Usage Arguments Value Author(s) References Examples

This function computes the l_2 distance between a point and a simplex, that is the shortest l_2 distance between the given point and any point in the simplex.

1 | ```
simplex_dist(theta, V)
``` |

`theta` |
A (K-1) dimensional vector, representing a point. |

`V` |
The K-by-(K-1) vertices matrix, with each row being a vertex. |

The l_2 distance.

Minzhe Wang

Ke, Z. T., & Wang, M. (2017). A new SVD approach to optimal topic estimation. arXiv preprint arXiv:1704.07016.

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.