using a modified Fiets formula to tune climb detection
Last time I described that the recursive algorithm I proposed for finding climbs in a profile was: identify all non-overlapping rateable climbs in a profile: If there's no rateable climbs of some minimum climb rating, then we're done. identify the highest-rated climb in a profile. identify all rateable climbs preceding this climb (recursive) identify all rateable climbs following this climb (recursive) I implemented this in Perl, which went a lot faster than it had taken to implement my previous, unsuccessful iterative approach. I tested this on randomly generated "profiles". I put "profiles" in quotes because they're not very realistic. I had to define a "minimal" climb, so this I decided was 5 meters gained in 0.1 km. This is a 5% (approximate) grade for only 100 meters. So to be identified as a "climb" the simulated road would need to be steeper and/or gain more altitude. Initially I used the conventional Fiets formula...