Geometric Median

Is there a package to compute the geometric median of a multivariate dataset?

DirectionalStatistics.jl has a geometric_median function.

julia> geometric_median([1, 2, 3])
2.0

julia> geometric_median([0, 1, 1im, 1+1im]) ≈ 0.5+0.5im
true

julia> geometric_median([[0, 0], [0, 1], [1, 0], [1, 1]]) ≈ [0.5, 0.5]
true
1 Like