A Generalized Arithmetic Geometric Mean