distance distribution metric