Do you know any parallel modified moving average algorithm?
I want to quickly calculate a moving average, but not with sequential algorithms . I want to use parallel algorithms, but I still haven't found a solution.
The best algorithm I have found is a sequential algorithm with a modified moving average to measure computer performance :
new_avg = alfa(new_time, previous_time) * new_value + (1-alfa(new_time, previous_time)) * previous_avg alfa(new_time, previous_time) = 1- exp(-(new_time - previous_time)/moving_period)
Some other algorithms are good, but I have not found parallel algorithms .
This is a difficult question and I need help.
Consider that I want counting events to come in a random order of time - early events may appear later, later events - you could assume that an early event might be skipped / become outdated after processing late events (or with some timeout). Do not assume a sequential time order of events and that an event from the same time will arrive with the same time .
I do not want to use any algorithm that requires the memorization of many samples (especially all), it should remember only the time and the previous average value, perhaps some additional value, but not all or the same samples. Consider that an algorithm may make some minor errors not necessarily perfect, if the reason is performance improvement.
It will be very good if he uses fragments, but not necessarily.
source share