interval_detect function

Detect Intervals in a Ride.