Python Forum
Can I interpolate if I don't know the function I am dealing with?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I interpolate if I don't know the function I am dealing with?
#1
Hello everyone. I am working on the translation of some code from mathematica to python. In one line it is written ifuncEPSX = Interpolation[windXMat //. {x_List} :> x]; here x_List is a matrix of three columns, the two first are X and Y points in a plane and the third are the values of the function.

I have constructed a similar matrix in python. However, I don't know how to reproduce the aforementined line of code, since in the interpolations defined for numpy and scipy it seems like the function of X and Y has to be known.

Is there a way to do this in python?

Any answer is appreciated.
Regards.
Reply
#2
maybe https://docs.scipy.org/doc/numpy/referen...lyfit.html and https://docs.scipy.org/doc/numpy/referen...nomial.fit
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Yes, I think this might be useful. Thank you very much.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Interpolate using multiple dataframes Lastwizzle 0 1,712 May-29-2019, 05:32 PM
Last Post: Lastwizzle

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020