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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/15/02 14:59
Read: times


 
#27285 - RE: moving average
Jon,
I think you meant:

....
ttl -= sample_tab [ndx];
/* instead of ttl += sample_tab [ndx]; */
ttl += new_sample;
sample_tab [ndx] = new_sample;
.....

Yeah that would definitely work faster as it eliminates a large number of additions.

kundi



List of 12 messages in thread
TopicAuthorDate
moving average            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: Steve            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: Peter.            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: moving average            01/01/70 00:00      
RE: moving average            01/01/70 00:00      

Back to Subject List