Average distance metric calculations