I just noticed this gem from Darrel:

https://dt.picbasic.co.uk/CODEX/AtoDAveraging

You know how the least sigificant digit will "wobble" back and forth between 2 numbers? It's half-way between 2 numbers and it can't quite figure out which one it should be. Well, this adds hysteresis to the averaging routine to eliminate that.