Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Higher order interpolation on regular grids #243

Closed
flabowski opened this issue Jun 17, 2023 · 0 comments
Closed

Higher order interpolation on regular grids #243

flabowski opened this issue Jun 17, 2023 · 0 comments

Comments

@flabowski
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I have my data sampled on a regular grid in the parameter space.

Describe the solution you'd like
I am using a regular grid interpolation, see RegularGridInterpolator: Interpolation on a regular or rectilinear grid in arbitrary dimensions. Supported are “linear”, “nearest”, “slinear”, “cubic”, “quintic” and “pchip”. It would be nice to have this available through EZyRB directly.

Describe alternatives you've considered
The LinearNDInterpolator which is wrapped here is much slower.
For 1D data, the interp1d class is used, but in EZyRB it allows for the default linear interpolation only.

Additional context
#166 suggested new wrappers. Beside the RBF interpolation, I found that the LinearNDInterpolator is wrapped here.
It does not perform well, because the interpolant is constructed by triangulating the input data with Qhull. Moreover, it allows only for linear interpolation. The RegularGridInterpolator takes advantage of the grid structure and allows for higher order interpolation (scipy 1.10 or higher required).

@mathLab mathLab locked and limited conversation to collaborators Jun 17, 2023
@mtezzele mtezzele converted this issue into discussion #245 Jun 17, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant