Estimate values between known data points. SciPy Interpolation 1from scipy import interpolate 2import numpy as np 3 4x = np.array([0, 1, 2, 3, 4]) 5y = np.array([0, 1, 4, 9, 16]) 6 7# Linear 8f_linear = interpolate.interp1d(x, y, kind='linear') 9 10# Cubic spline 11f_cubic = interpolate.interp1d(x, y, …
Read More