Re:Find running median from a stream of integers
by toemetoch on Tuesday May 22, 2012 @02:10AM
(#4006470)
toemetoch, who is dead
... I'm not following. I can see my reply a few posts down. I accidentally hit submit twice, deleted one but the second one is still there.
Edit: The same technique can be found in some 1-bit ADCs, I believe it's delta-sigma ADC.
"In a normal distribution the probability of a value higher or lower than mean is 50%. So if you find mean, the average of your +1/-1 noise is zero -> if you're on mean you'll remain there.
If you're not on mean you have a (50 + error)% chance of moving towards mean and (50 - error)% chance of moving away from mean on the next random value -> the trend is towards mean."