moodz
Member since Apr 6, 2010
- Profile: /members/5779-moodz.htm
- URL: http://animusfactum.com
- Comments: 2
Recent Blog Comments By moodz
-
Create A Running Average Without Storing Individual Values
Posted on Apr 6, 2010 at 9:20 PM
correction .. sum for n/2 samples where n is the no of samples to be averaged. loop: sum for n/2 samples --do this for n/2 samples store sum in sum1 average = sum1/n sum1 = sum1/2 --initialise sum1 to half sum1 goto loop --keep going forever... read more »
-
Create A Running Average Without Storing Individual Values
Posted on Apr 6, 2010 at 6:39 AM
nice but a the need to continually increment the sample count will/maybe cause counter overflows etc not good in spaceships etc ... I started with your method however I arrived at this one .... loop: sum for n samples--do this for n samples store sum in sum1 average = sum1/n sum1... read more »