|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||||
|
|||||
|
Re: "Rewinding" Data
I'd use an array of the appropriate size.
Make it a circular queue and just toss the oldest value while inserting the newest value. You'll have to calculate the appropriate past position to retrieve. There's an example of keeping "n" past values for purposes of a moving average on this page. Search for "Moving Average". |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|