05-17-2005 02:42 PM
05-17-2005 03:23 PM - edited 05-17-2005 03:23 PM
Message Edited by Chaos on 05-17-2005 03:24 PM
05-18-2005 07:42 AM
05-19-2005 11:07 AM
11-26-2007 05:56 PM
11-26-2007 08:26 PM - edited 11-26-2007 08:26 PM
blue silver wrote:
hi Peter,
I have an array of 2,000,000 values (each long int). I need to do an "Moving average" operation which would than:
1) takes average of the first 10 values , plots it
2) remove the first value ,add 11.th value, take average, plots it in the next 100 ms in the chart
3) remove the first value, add 12.th value, take average, plots it in the next 100 ms in the chart
(as you see , it is a kind of shifting) the averaged array elements is always 10 , and after averaging those 10 elements , plot it with 100 ms distance in the graph.
....
....
....
....
1999989) remove the 1,999,989 th element , add the last element
you have a possible idea ?
your help will be tremendously appreciated.
Regards
Silver
