Text this: Calculating the average distance between horizontal projection peaks