Skip to content Skip to sidebar Skip to footer

Scipy.interpolate Problems With Inputing Values

Currently trying to use scipy's implementation of interpolate to create a uniform cubic B-spline (clamped). When using interpolate.splev() the target (x) value I pass in is changed

Solution 1:

splev accepts a tuple of knots and coefficients. To fit the data, use tck= splrep(x, y, s=0); splev(xnew, tck), or make_interp_spline.

To create a splne object with given coefficients, use BSpline(t, c, k)

Post a Comment for "Scipy.interpolate Problems With Inputing Values"