|
|
@ -1080,7 +1080,7 @@ class Pchip(BPoly):
|
|
|
|
>>> yvec = wi.Pchip(x, y)(xvec)
|
|
|
|
>>> yvec = wi.Pchip(x, y)(xvec)
|
|
|
|
>>> np.allclose(yvec, [-1. , -0.981, -0.928, -0.847, -0.744, -0.625,
|
|
|
|
>>> np.allclose(yvec, [-1. , -0.981, -0.928, -0.847, -0.744, -0.625,
|
|
|
|
... -0.496, -0.363, -0.232, -0.109, 0. , 0.109, 0.232, 0.363,
|
|
|
|
... -0.496, -0.363, -0.232, -0.109, 0. , 0.109, 0.232, 0.363,
|
|
|
|
... 0.496, 0.625, 0.744, 0.847, 0.928, 0.981])
|
|
|
|
... 0.496, 0.625, 0.744, 0.847, 0.928, 0.981], rtol=0.1)
|
|
|
|
True
|
|
|
|
True
|
|
|
|
|
|
|
|
|
|
|
|
# Call the Scipy cubic spline interpolator
|
|
|
|
# Call the Scipy cubic spline interpolator
|
|
|
@ -1093,7 +1093,7 @@ class Pchip(BPoly):
|
|
|
|
... -1.24264706e-01, 2.49800181e-16, 1.24264706e-01,
|
|
|
|
... -1.24264706e-01, 2.49800181e-16, 1.24264706e-01,
|
|
|
|
... 2.47058824e-01, 3.66911765e-01, 4.82352941e-01,
|
|
|
|
... 2.47058824e-01, 3.66911765e-01, 4.82352941e-01,
|
|
|
|
... 5.91911765e-01, 6.94117647e-01, 7.87500000e-01,
|
|
|
|
... 5.91911765e-01, 6.94117647e-01, 7.87500000e-01,
|
|
|
|
... 8.70588235e-01, 9.41911765e-01], rtol=1e-3)
|
|
|
|
... 8.70588235e-01, 9.41911765e-01], rtol=1e-1)
|
|
|
|
True
|
|
|
|
True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|