Another running average that may be useful to all. This one will work even if you do not have floating point. However, you need to be able to handle large numbers or size the buffer appropriately...
Type: Posts; User: Jerson; Keyword(s):
Another running average that may be useful to all. This one will work even if you do not have floating point. However, you need to be able to handle large numbers or size the buffer appropriately...
Ioannis, I think you must have meant
Average = (Average*15 + sample)/16