I have data in the format:
X1 | X2 | Y |
---|---|---|
a1 | b11 b12 | y11 y12 |
a2 | b12 b22 | y12 y22 |
a3 | b13 b23 | y13 y23 |
I am trying to build a 2D interpolation tool such as y=f(X1, X2). I was wandering what is the best 2D interpolator in Numpy for this: RegularGridInterpolator or LinearNDInterpolator? and how to insert the data to interpolator's constructor? The documentation uses function for y with input coming from a meshgrid function which I can't really use here as I have to use the y I already have.