The following applies to c# .net 4. I am looking for a c# code.
(Figure 1) I have different values, for instance 700, 712, 703 and 720. dt1 is for instance 30ms, dt2 may be 9ms. What matters is that dt1 to dtn is not constant.
(Figure 2) The time axis
(Figure 3) This is what I want, values for a constant time gap tc of roughly 17ms. x1 to xn are the values a variable consists of, ie:
x(t(x1)) = x1
x(t(x2)) = x2
...
x(t(xn)) = xn
How do I determine x1 to xn in real time? So let's say the current time is dt1+dt2+somewhere within dt3. I do not know when dt3 will be finished(even though previous dt were in between 9ms and 30ms) and what value there will be. How could I guess a value for x4 that takes previous changes into account?
How do I smooth the values of (Figure 1) at the same time for them to be - say - 700 - 708 - 712 - 720, ie remove the jitter?
Gonna take a shot at this (poorly worded sequence of operations following):
Just a very rough idea of "smoothing" where you ignore the value and only care for the orientation of the "movement" of your x.