What's the most general type operator `/` can be used on?

I'm trying to avoid duplicating average because it's doing some somewhat complicated long winded algorithm...