Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at the New York ColdFusion User Group (Jan. 2010) with:

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 »