Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
Boxer
· 17y ago · 0 comments
Let average-so-far=a, count=c. When you add a new item x, the new average is: a = a + (x-a)/(c+1)
Comments
No comments yet.
Better HN