Minimum interval length for auto slicing?

Issue #353 wontfix
Gregory Smith created an issue

When I generate intervals using a pace slice, sometimes I get extraneous intervals. like the first 4 intervals in this summary.

I was thinking a useful enhancement would be to introduce an element of hysteresis into the slicing level. Perhaps 3 seconds on pace or 10W on power. So an interval would start when the threshold is crossed, but would end when the the pace is 3 sec slower than the threshold. An alternative would be to set a minimum time for interval and rest, but I think that might be more of a pain to code.

      Workout Summary - media/20181004-1200310o.csv

--|Total|-Total-|--Avg--|-Avg-|Avg-|-Avg-|-Max-|-Avg --|Dist-|-Time--|-Pace--|-Pwr-|SPM-|-HR--|-HR--|-DPS --|13830|74:54.0|02:42.5|123.4|20.7|144.8|159.0|08.9 W-|13187|65:37.0|02:29.3|132.7|20.2|147.8|159.0|10.0 R-|00650|09:17.0|07:08.7|057.5|24.5|123.4|159.0|06.2 Workout Details #-|SDist|-Split-|-SPace-|-Pwr-|SPM-|AvgHR|MaxHR|DPS- 01|00005|00:01.7|02:46.7|104.2|16.0|075.0|75.0|11.2 02|00008|00:01.7|01:44.9|126.1|18.0|077.0|77.0|15.9 03|00009|00:03.5|03:06.2|133.5|18.5|080.0|80.0|08.7 04|00010|00:03.0|02:34.6|133.5|19.0|083.0|83.0|10.2 05|01254|05:57.9|02:22.7|130.0|19.9|132.2|144.0|10.6 06|02592|11:59.4|02:18.8|136.2|19.8|145.6|155.0|10.9 07|02839|14:42.0|02:35.3|134.2|20.0|149.8|159.0|09.7 08|02758|12:57.1|02:20.9|133.4|20.3|149.2|156.0|10.5 09|03037|16:11.7|02:40.0|129.7|20.2|151.6|157.0|09.3 10|00305|01:40.8|02:45.5|138.9|21.4|153.6|156.0|08.5 11|00370|01:59.1|02:40.8|125.1|23.1|154.6|159.0|08.1

Comments (2)

  1. Sander Roosendaal repo owner

    @gregsmith01748 The current algorithm quickly finds the stroke numbers where you transition from one state to another. It's a very efficient algorithm using built-in functionality of the python pandas library.

    I understand why you are proposing this, but I am hesitant to implement it. It's a lot of work. Usually we use the summary in blog posts and the like, where we can easily delete the incorrect lines.

  2. Log in to comment