EconForge / interpolation.py

BSD 2-Clause "Simplified" License
123 stars 35 forks source link

Replacement for scipy's RegularGridInterpolator #55

Closed jvines closed 4 years ago

jvines commented 4 years ago

Hi,

I'm currently using Scipy's RegularGridInterpolator to interpolate ~20 3 dimensional grids and then pickle the resulting functions for later use. Would this be possible with this package? If so, would the resulting functions be faster than the ones from scipy??

Thank you!

albop commented 4 years ago

There is a LinearSpline object (which behaves like a function since it has a call method). I have no idea whether it is pickable already. It probably is, but if it's not, it would be an easy feature to add. Can you try? In terms of speed, that should be pretty independent from pickability.

jvines commented 4 years ago

Bu could I do an N dimensional interpolation with LinearSpline??

albop commented 4 years ago

Sure

On Fri, Nov 15, 2019 at 8:08 PM Jose Vines notifications@github.com wrote:

Bu could I do an N dimensional interpolation with LinearSpline??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EconForge/interpolation.py/issues/55?email_source=notifications&email_token=AACDSKLFPTOCS7RLSZBWJGLQT3XTDA5CNFSM4JN36R3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEGNLTQ#issuecomment-554489294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDSKKW3UOLVVA2WT54S23QT3XTDANCNFSM4JN36R3A .