Created
February 12, 2022 18:22
-
-
Save jj-github-jj/ca0bfd716f681dc6ab5a19a399d1089a to your computer and use it in GitHub Desktop.
interpolate function for one line interpolation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def y_interpolate (xnew,x,y): | |
from scipy.interpolate import interp1d | |
y_interpolate_function = interp1d(x, y) | |
return (y_interpolate_function(xnew)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment