Hi, I think noise is probably an issue for all consumer gps, some more than others. The graphs do look a lot better after the averaging has been applied.
I had thought a bit about this idea before but had been thinking about applying the smoothing to the actual gps track coordinates. This would probably be significantly harder though. The advantage would be smoothing for the map view as well. I think that your current approach is probably better, at least for the short term. Something to consider for your current code are that some devices (mine included) have a "Smart Recording" mode which inserts points at irregular time intervals. The averaging should be weighted by the time between points. Perhaps the averaging might be best controlled by a 100 second average rather than a 100 data point average, I don't know fi this would have a useful effect. Jonathan On Sat, 2011-03-26 at 16:54 +0100, Jan Stępień wrote: > Hello, > > The GPS receiver I'm using to collect data for Pytrainer is pretty > inaccurate. As a result all graphs aren't too smooth, as you can in > the attached image no_avg.png. > > In order to solve this problem I'd like to suggest adding a feature > which would smooth the graph by taking an average of plotted data. > It would be nice if users would be allowed to choose how many points > should be averaged. It would be great if it was done automatically. > > I did some experiments and I've created a tiny, ugly and suboptimal > patch just to show you how I'd prefer those graphs to look like. It's > attached to this message. avg1.png shows a screenshot of a record graph > for average == 20 and avg2.png for average == 100. > > What do you think about such an idea? > > Best regards, > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ Pytrainer-devel mailing list > Pytrainer-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pytrainer-devel ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Pytrainer-devel mailing list Pytrainer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytrainer-devel