Skip to main content

moodz

Member since Apr 6, 2010

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 »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel