12
12
from scipy .lib ._version import NumpyVersion
13
13
14
14
from scipy .interpolate import (interp1d , interp2d , lagrange , PPoly , BPoly ,
15
- ppform , splrep , splev , splantider , splint , sproot , AkimaInterpolator )
15
+ ppform , splrep , splev , splantider , splint , sproot , Akima1DInterpolator )
16
16
17
17
from scipy .interpolate import _ppoly
18
18
@@ -349,11 +349,11 @@ def test_lagrange(self):
349
349
assert_array_almost_equal (p .coeffs ,pl .coeffs )
350
350
351
351
352
- class TestAkimaInterpolator (TestCase ):
352
+ class TestAkima1DInterpolator (TestCase ):
353
353
def test_eval (self ):
354
354
x = np .arange (0. , 11. )
355
355
y = np .array ([0. , 2. , 1. , 3. , 2. , 6. , 5.5 , 5.5 , 2.7 , 5.1 , 3. ])
356
- ak = AkimaInterpolator (x , y )
356
+ ak = Akima1DInterpolator (x , y )
357
357
xi = np .array ([0. , 0.5 , 1. , 1.5 , 2.5 , 3.5 , 4.5 , 5.1 , 6.5 , 7.2 ,
358
358
8.6 , 9.9 , 10. ])
359
359
yi = np .array ([0. , 1.375 , 2. , 1.5 , 1.953125 , 2.484375 ,
@@ -367,7 +367,7 @@ def test_eval_2d(self):
367
367
x = np .arange (0. , 11. )
368
368
y = np .array ([0. , 2. , 1. , 3. , 2. , 6. , 5.5 , 5.5 , 2.7 , 5.1 , 3. ])
369
369
y = np .column_stack ((y , 2. * y ))
370
- ak = AkimaInterpolator (x , y )
370
+ ak = Akima1DInterpolator (x , y )
371
371
xi = np .array ([0. , 0.5 , 1. , 1.5 , 2.5 , 3.5 , 4.5 , 5.1 , 6.5 , 7.2 ,
372
372
8.6 , 9.9 , 10. ])
373
373
yi = np .array ([0. , 1.375 , 2. , 1.5 , 1.953125 , 2.484375 ,
@@ -388,7 +388,7 @@ def test_eval_3d(self):
388
388
y [:, 1 , 0 ] = 2. * y_
389
389
y [:, 0 , 1 ] = 3. * y_
390
390
y [:, 1 , 1 ] = 4. * y_
391
- ak = AkimaInterpolator (x , y )
391
+ ak = Akima1DInterpolator (x , y )
392
392
xi = np .array ([0. , 0.5 , 1. , 1.5 , 2.5 , 3.5 , 4.5 , 5.1 , 6.5 , 7.2 ,
393
393
8.6 , 9.9 , 10. ])
394
394
yi = np .empty ((13 , 2 , 2 ))
@@ -408,7 +408,7 @@ def test_eval_3d(self):
408
408
def test_extend (self ):
409
409
x = np .arange (0. , 11. )
410
410
y = np .array ([0. , 2. , 1. , 3. , 2. , 6. , 5.5 , 5.5 , 2.7 , 5.1 , 3. ])
411
- ak = AkimaInterpolator (x , y )
411
+ ak = Akima1DInterpolator (x , y )
412
412
try :
413
413
ak .extend ()
414
414
except NotImplementedError as e :
0 commit comments