How can I change the number of basis functions when performing B-Spline fitting in scipy (python)?
问题 I have a discrete set of points (x_n, y_n) that I would like to approximate/represent as a linear combination of B-spline basis functions. I need to be able to manually change the number of B-spline basis functions used by the method, and I am trying to implement this in python using scipy. To be specific, below is a bit of code that I am using: import scipy spl = scipy.interpolate.splrep(x, y) However, unless I have misunderstood or missed something in the documentation, it seems I cannot