Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is "Median filter size" and "Average moving size" doing? #4

Closed
rucksman opened this issue Aug 20, 2022 · 2 comments
Closed

What is "Median filter size" and "Average moving size" doing? #4

rucksman opened this issue Aug 20, 2022 · 2 comments

Comments

@rucksman
Copy link

First of all thank you for this project. As I am new to Garmin devices, I am very glad to have a tool running on my own server instead of Garmins servers.

I know that you are not working on fitplotter anymore, but I hope nevertheless to get some information from you: I am currently adapting fitplotter and fitalyser to my needs and stumbled upon "Median filter size" and "Average moving size". To be honest: I have no clue what both of them are doing. I did play around with the values but saw no differences in the plot area nor in the map. I did some superficial investigation in main.js, but this did not help me either, Can you please briefly explain what the two variables do? Thank you!

@karaul
Copy link
Owner

karaul commented Aug 20, 2022

stumbled upon "Median filter size" and "Average moving size".

These are to smooth noisy data.

"Median filter size" is explained at https://en.wikipedia.org/wiki/Median_filter section "Worked one-dimensional example"

"Average moving size" is explained at https://en.wikipedia.org/wiki/Moving_average section "Simple moving average"

If the inintial data are not noisy, these filters have no effects. Nowadays, it's the case because a smooth algorithm might already be implented into the watch hardware, howere, ten years ago, with the first Garmin watches, one typically had an issiue with noisy data

@rucksman
Copy link
Author

Thanks for the very quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants