Smooth out a jumpy reading
Getting the lesson ready…
Keep the newest readings in a window, wrap back to slot 0, and divide by how many are stored.
Smooth out a jumpy reading: the words you will learn
- add the numbers up, then divide by how many there are
- average
- the newest readings that are averaged: here the last 4
- window (WindowSize)
- go back to slot 0 after the last slot, and carry on round
- wrap back