Divide the threshold by the resolution to prevent duplicates being detected in high resolution curves.