Skip to content
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

Adding FilledInterpolation #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AndyGreenwell
Copy link
Owner

A FilledInterpolation type is proposed which provides capabilities for a user-defined value to be used for filling the extrapolation domain of an Interpolation. The FilledInterpolation type includes an Interpolation object that is constructed with any existing ExtrapolationBehavior. The ExtrapolationBehavior of the Interpolation object is replaced with the user-defined fillvalue in the extrapolation region of the FilledInterpolation.

The approach taken for this functionality was proposed to me by @tlycken in response to my email inquiries about adding functionality similar to the use of an "extrapval" argument in Matlab's interp1/interp2/interpn functions and the fill_value keyword in scipy.interpolate's interp1d/interp2d/interpn functions.

A FilledInterpolation type is proposed which provides capabilities for a user-defined value to be used for filling the extrapolation domain of an Interpolation.  The FilledInterpolation type includes an Interpolation object that is constructed with any existing ExtrapolationBehavior.  The ExtrapolationBehavior of the Interpolation object is replaced with the user-defined fillvalue in the extrapolation region of the FilledInterpolation.

The approach taken for this functionality was proposed to me by @tlycken in response to my email inquiries about adding functionality similar to the use of an "extrapval" argument in Matlab's interp1/interp2/interpn functions and the fill_value keyword in scipy.interpolate's interp1d/interp2d/interpn functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant