i found the concept of
https://en.wikipedia.org/wiki/Fr%C3%A9chet_mean helpful. it's a generalization of the different kinds of averages and you can express the arithmetic mean, geometric mean, harmonic mean, median or even mode just by swapping out the distance metric in the formula.