Modify

Opened 4 years ago

Closed 4 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)

11338.patch (2.1 KB) - added by simon04 4 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 4 years ago by bastiK

Could you attach one or more sample tracks?

comment:2 Changed 4 years ago by Don-vip

Owner: changed from team to daganzdaanda
Status: newneedinfo

comment:4 Changed 4 years ago by Don-vip

Owner: changed from daganzdaanda to team
Status: needinfonew

Changed 4 years ago by simon04

Attachment: 11338.patch added

comment:5 Changed 4 years ago by simon04

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:7 Changed 4 years ago by simon04

Milestone: 15.1015.11

Postpone. Feedback is welcome :).

comment:8 Changed 4 years ago by wiktorn

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 Changed 4 years ago by Don-vip

Milestone: 15.1115.12

comment:10 Changed 4 years ago by Don-vip

Milestone: 15.1216.01

comment:11 Changed 4 years ago by simon04

Resolution: fixed
Status: newclosed

In 9234/josm:

fix #11338 - Gpx tracks: speed outliers and coloring

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.