Elevation Gain and Elevation Hysteresis

51 views
Skip to first unread message

Kevin Sharp

unread,
May 25, 2023, 5:59:50 PM5/25/23
to golden-cheetah-developers

When I created a set of video-sync workouts I  copied the details of each from the Overview tab in Activities into a spreadsheet so that I can later select a workout based on distance, elevation gain, maximum gradient etc. I noticed that the elevation gain calculated by Golden Cheetah is considerably less than the elevation gain I had previously recorded for the workouts. A bit of digging revealed that this is due to the Elevation Hysteresis. So I duly set the hysteresis to zero in Options/General and was surprised to see that this made no difference. Examining the code I see that if the hysteresis is <= 0.1m then the default value of 3m is used.

 

I can see why you would want to discourage the use of zero hysteresis with noisy GPS recordings or even barometric elevation, but I'm using heavily smoothed elevation data. I would suggest that the code is removed to test for hysteresis <=0.1, or at the very least Options/General/Elevation Hysteresis does not accept a value <= 0.1m.

Ale Martinez

unread,
May 27, 2023, 9:54:30 AM5/27/23
to golden-cheetah-developers
El jueves, 25 de mayo de 2023 a la(s) 18:59:50 UTC-3, Kevin Sharp escribió:

When I created a set of video-sync workouts I  copied the details of each from the Overview tab in Activities into a spreadsheet so that I can later select a workout based on distance, elevation gain, maximum gradient etc. I noticed that the elevation gain calculated by Golden Cheetah is considerably less than the elevation gain I had previously recorded for the workouts. A bit of digging revealed that this is due to the Elevation Hysteresis. So I duly set the hysteresis to zero in Options/General and was surprised to see that this made no difference. Examining the code I see that if the hysteresis is <= 0.1m then the default value of 3m is used.

 

I can see why you would want to discourage the use of zero hysteresis with noisy GPS recordings or even barometric elevation, but I'm using heavily smoothed elevation data. I would suggest that the code is removed to test for hysteresis <=0.1, or at the very least Options/General/Elevation Hysteresis does not accept a value <= 0.1m.

Agree Config should be changed to make it consistent with the code.

WRT not to use hysteresis, or to use a different algorithm as proposed in https://groups.google.com/g/golden-cheetah-developers/c/Yn_LG9BocmA/m/pobnXN-0AwAJ, you can define a custom metric to fit your needs. 
Reply all
Reply to author
Forward
0 new messages