Modify

Opened 9 years ago

Closed 8 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 8 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by bastiK, 9 years ago

Could you attach one or more sample tracks?

comment:2 by Don-vip, 9 years ago

Owner: changed from team to daganzdaanda
Status: newneedinfo

comment:4 by Don-vip, 9 years ago

Owner: changed from daganzdaanda to team
Status: needinfonew

by simon04, 8 years ago

Attachment: 11338.patch added

comment:5 by simon04, 8 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:7 by simon04, 8 years ago

Milestone: 15.1015.11

Postpone. Feedback is welcome :).

comment:8 by wiktorn, 8 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 Don-vip, 8 years ago

Milestone: 15.1115.12

comment:10 by Don-vip, 8 years ago

Milestone: 15.1216.01

comment:11 by simon04, 8 years ago

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.