Create BSpline from knots and coefficients
问题 How can a spline be created if only the points and the coefficients are known? I'm using scipy.interpolate.BSpline here, but am open to other standard packages as well. So basically I want to be able to give someone just those short arrays of coefficients for them to be able to recreate the fit to the data. See the failed red-dashed curve below. import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import BSpline, LSQUnivariateSpline x = np.linspace(0, 10, 50) # x-data y =