What is the easiest and fastest way to interpolate between two arrays to get new array.
For example, I have 3 arrays:
x = np.array([0,1,2,3,4,5]) y = np.array([5,4,3,2,1,0]) z = np.array([0,5])
x,y corresponds to data-points and z is an argument. So at
z=0 x array is valid, and at
z=5 y array valid. But I need to get new array for
z=1. So it could be easily solved by:
a = (y-x)/(z-z)*1+x
Problem is that data is not linearly dependent and there are more than 2 arrays with data. Maybe it is possible to use somehow spline interpolation?