https://medium.com/@monocosmo77/using-barycenter-methods-in-machine-learning-research-part1-4c1abd3cb7ae