https://medium.com/@monocosmo77/using-barycenter-methods-in-machine-learning-research-part2-a5553a6c9b2d