Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

SciPy 1D Interpolation

from scipy.interpolate import interp1d
import numpy as np


xs = np.arange(10)
ys = 2*xs + 1

interp_func = interp1d(xs, ys)
newarr = interp_func(np.arange(2.1, 3, 0.1))

print(newarr)
Comment

PREVIOUS NEXT
Code Example
Python :: how to return total elements in database django 
Python :: csrf token fetch django 
Python :: how to reboot a python script 
Python :: how to read xlsx file in jupyter notebook 
Python :: python turtle write 
Python :: delete spaces in string python 
Python :: pyttsx3 set volume 
Python :: pathlib path python 
Python :: python bool to string 
Python :: python get cookie from browser 
Python :: CSRF verification failed. Request aborted. 
Python :: python requests post 
Python :: python reverse a string 
Python :: pandas create new column conditional on other columns 
Python :: python compute SSIM 
Python :: integer to datetime python 
Python :: int to string python 
Python :: how to sum certain columns row wise in python 
Python :: discord py bot example 
Python :: minecraft python code 
Python :: how to get input python 
Python :: hide code in jupyter notebook 
Python :: install imgkit py 
Python :: Python Tkinter SpinBox Widget 
Python :: pandas replace row values based on condition 
Python :: random number pythob 
Python :: time addition in python 
Python :: remove unnamed 0 column pandas 
Python :: random string generate python of 2.7 
Python :: post to instagram from pc python 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =