Added neighborhood difference to distance metric for better lobe shaping