I have several (denoted by index i) sets of datapoints (x,y) stored in vectors x_i and y_i.
x_i is not necessarily of the same lenght as x_i+1.
I want to interpolate the data for every i separately and then work with the interpolated functions f_i.
I have tried with scipy.interpolate and get interp1d objects as a result. These however are not sufficient since I need
- Addition: f_i + f_i+1
- scalar multiplication: a * f_i
- shift/ dilation: f(a * x + b)
The goal is to optimize the difference between f_i+1 and some manipulation of f_i to find the evolution. This is very hard to accomplish using vectors since the x_i[n] does not necessarily correspond to x_i+1[n] (not even when i use interpolation and gridding)
Thanks for any suggestions
Stephan