simplex_dist: The l_2 distance between a point and a simplex
Description
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.
Usage
simplex_dist(theta, V)
Arguments
theta
A (K-1) dimensional vector, representing a point.
V
The K-by-(K-1) vertices matrix, with each row being a vertex.
Value
The l_2 distance.
References
Ke, Z. T., & Wang, M. (2017). A new SVD approach to optimal topic estimation. arXiv preprint arXiv:1704.07016.