High Score

by gerhard

Downloads: 3,104 (8) • Reviews: 1

Version:

2.1.4

Updated:

Dec 27, 2015

Pace bug or rounding error?

Pace bug or rounding error?

Postby mandohack » Fri Apr 03, 2015 11:02 am

Hi, gerhard.

Thanks for one of my favorite plugins.

I think I found a bug In listing my high scores (High Score v 2.0.419) for my last run, it shows 6:46 pace for 5k (3.11mi) and a slower pace for the 3.00mi at 6:47. I know, I'm being picky, but thought you might like to know about it anyway. They do have different start times and places, but the fastest 3.00mi should be contained within that 3.11mi. That or it's simply a rounding error.

Again, I appreciate your great work on the very useful plugins, Unique Routes being one of my absolute favorites.

--Ian

HS v2.0.419
ST 3.1.5349
Win 8.1
Attachments
2015-04-03 11_28_00-SportTracks - High Score Plugin Bug.png
2015-04-03 11_28_00-SportTracks - High Score Plugin Bug.png (88.32 KiB) Viewed 11624 times
mandohack
 
Posts: 25
Joined: Sat Dec 17, 2011 1:42 pm

Re: Pace bug or rounding error?

Postby gerhard » Fri Apr 03, 2015 12:05 pm

mandohack wrote:In listing my high scores (High Score v 2.0.419) for my last run, it shows 6:46 pace for 5k (3.11mi) and a slower pace for the 3.00mi at 6:47.


This is a rounding error in how the "parts to compare" is done. As it currently is implemented, the rounding error is not in the plugin itself.
The plugin uses the ST built in method to chop up in laps (20m long). These laps are then compared, step by step. The precision is lost in this chopping.

I have considered handle the time vs distance special, to avoid this chopping. The primary reason is performance, but this issue would likely be handled better too. (Personally, the rounding error in this issue is not something I find important (GPS has bigger issues)).

Note: A similar display "issue" could occur if the grade filtered away the shorter distance (grade was < -2%) but not the longer one. Not in this case.
gerhard
Contributor!
Contributor!
 
Posts: 2252
Joined: Mon Nov 27, 2006 7:07 pm
Location: Sweden

Re: Pace bug or rounding error?

Postby mandohack » Sat Apr 04, 2015 7:30 am

Thanks for the great explanation, gerhard, I appreciate your time.
mandohack
 
Posts: 25
Joined: Sat Dec 17, 2011 1:42 pm


Return to High Score

Who is online

Users browsing this forum: No registered users and 1 guest