bask.utils
.geometric_median¶
- bask.utils.geometric_median(X, eps=1e-05)[source]¶
Compute the geometric median for the given array of points.
The geometric median is the point minimizing the euclidean (L2) distance to all points.
- Parameters:
- Xnumpy array
(n_points, n_dim)
- epsfloat
Stop the computation if the euclidean distance of the last two computed points is smaller than eps
- Returns: