Is there a python library for Multivariate Interpolation? Right now I have three independent variables and one dependent variable. My data looks like this:
X1=[3,3,3.1,3.1,4.2,5.2,6.3,2.3,7.4,8.4,5.4,3.4,3.4,3.4,...]
X2=[12.1,12.7,18.5,18.3,18.4,18.6,24.2,24.4,24.3,24.5,30.9,30.7,30.3,30.4,6.1,6.2,...]
X3=[0.3,9.2,0.3,9.4,0.1,9.8,0.4,9.3,0.7,9.7,18.3,27.4,0.6,9.44,...]
Y=[-5.890,-5.894,2.888,-3.8706,2.1516,-2.7334,1.4723,-2.1049,0.9167,-1.7281,-2.091,-6.7394,0.8777,-1.7046,...]
and len(X1)=len(X2)=len(X3)=len(Y)=400
I want to fit or interpolate the data so that given arbitrary x1, x2, x3
values, the function f(x1,x2,x3)
is going to yield an estimated y
value. Like given x1=4.11, x2=10.34, and x3=10.78,
the function is going to yield -8.7567(best estimate).
I'd imagine the function is going to be polynomial. So maybe a spline interpolation is the best option here?