Generalized inverse of a mean