Opened 10 years ago
Closed 9 years ago
#11338 closed enhancement (fixed)
[Patch] Gpx tracks: speed outliers and coloring
Reported by: | daganzdaanda | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 16.01 |
Component: | Core | Version: | tested |
Keywords: | gpx tracks color speed | Cc: |
Description
I like to colour my gpx tracks according to speed, using the dynamic colour range.
Sometimes, my gpx tracks have errors in the recorded speed (e.g. when leaving a building, there might be a "jump" in the data).
In that case, the dynamic range is distorted and gets less informative.
Would it be possible to cut off the outliers for the dynamic coloring range?
Ignore the highest and lowest x% of speed values, painting them either grey or pink/red.
What would the best value for x be? 2?
Attachments (1)
Change History (11)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:3 by , 10 years ago
Here is one with a weird hiccup: https://gist.github.com/daganzdaanda/af2e861e3c1cc31bed29/raw/booths_rock.gpx
comment:4 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
by , 9 years ago
Attachment: | 11338.patch added |
---|
comment:5 by , 9 years ago
Milestone: | → 15.10 |
---|---|
Summary: | Gpx tracks: speed outliers and coloring → [Patch] Gpx tracks: speed outliers and coloring |
attachment:11338.patch takes the 5% and 95% percentile as lower/upper speed value.
Due to the required sorting, the complexity changes from O(n)
to O(n log(n))
where n = #waypoints
. What do you think?
comment:8 by , 9 years ago
The only other approach that's possible instead of using percentiles is to compute standard deviation and average, and use max/min capped by (average +/- 3 stddev).
This doesn't require sorting and assuming normal-like distribution, this should cover 99.8%, though I haven't tested GPX speeds against normal distribution. But I think that it might suffice.
comment:9 by , 9 years ago
Milestone: | 15.11 → 15.12 |
---|
comment:10 by , 9 years ago
Milestone: | 15.12 → 16.01 |
---|
Could you attach one or more sample tracks?