Uneven argument spacing is not a problem if they are all different. As you probably know, if you have four different times t[i], then there is a unique polynomial interpolation of the corresponding values x[i], having a degree of no more than 3 (cubic or lower order).
There are two main approaches to calculating interpolation: Newton divided differences and the Lagrange interpolation method .
Bearing in mind that simply finding a polynomial is not a point, but rather evaluating it at another time in the interval, there are some programming trade-offs that should be considered.
t[i] , x[i] , . , 1 . , x[i] - , . .
, t[i] , , t[i], x[i], . , , t[i] , , .
, . ++, Python Java.