in reply to calculate average from range of hash values (optimize)

The important aspect of moving averages is to minimimize the complexty of the N calculations. Calculate the sum, once, then add the new value and subtract the old value. Divide by N to obtain the average.

--
TTTATCGGTCGTTATATAGATGTTTGCA

  • Comment on Re: calculate average from range of hash values (optimize)