For users
For developers
This function computes the distance between all maxima and rejects maxima that are less than a minimum distance apart.