|
|
@ -1086,7 +1086,7 @@ class Pchip(BPoly):
|
|
|
|
# Call the Scipy cubic spline interpolator
|
|
|
|
# Call the Scipy cubic spline interpolator
|
|
|
|
>>> from scipy.interpolate import interpolate
|
|
|
|
>>> from scipy.interpolate import interpolate
|
|
|
|
>>> function = interpolate.interp1d(x, y, kind='cubic')
|
|
|
|
>>> function = interpolate.interp1d(x, y, kind='cubic')
|
|
|
|
>>> yvec1 = function(xvec); yvec1
|
|
|
|
>>> yvec1 = function(xvec)
|
|
|
|
>>> np.allclose(yvec1, [-1.00000000e+00, -9.41911765e-01, -8.70588235e-01,
|
|
|
|
>>> np.allclose(yvec1, [-1.00000000e+00, -9.41911765e-01, -8.70588235e-01,
|
|
|
|
... -7.87500000e-01, -6.94117647e-01, -5.91911765e-01,
|
|
|
|
... -7.87500000e-01, -6.94117647e-01, -5.91911765e-01,
|
|
|
|
... -4.82352941e-01, -3.66911765e-01, -2.47058824e-01,
|
|
|
|
... -4.82352941e-01, -3.66911765e-01, -2.47058824e-01,
|
|
|
|