H-distance