Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/17/05 20:42
Read: times


 
#93552 - it works, but
Responding to: ???'s previous message
But if you then want to find the average with the (n+1)th number added into the series, you must first multiply the average (the accumulator) by n (which is to say execute MULT AB) and then add the (n+1)th number to the accumulator, increment B register and DIV AB.

It works, but rarely do you want samples from 10 days ago to influence your average.

I like to store the readings in a rotary buffer (with no interest in overflow) and calculate the average on that. That way you get the average of, say, the 16 last readings.

Erik

List of 12 messages in thread
TopicAuthorDate
Advance calculation and processing            01/01/70 00:00      
   It is easy            01/01/70 00:00      
      What if I persist?            01/01/70 00:00      
         ok            01/01/70 00:00      
   Not entirely sure            01/01/70 00:00      
      late night or miller time?            01/01/70 00:00      
   sine function            01/01/70 00:00      
      Correction            01/01/70 00:00      
         it works, but            01/01/70 00:00      
            Overflow ?            01/01/70 00:00      
               calrification            01/01/70 00:00      
      Another sine alternative            01/01/70 00:00      

Back to Subject List