Noise filter to vary result based on change in distance of the object