Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -97,7 +97,7 @@ class aubio_alpha_norm(TestCase): · 96 unmodified lines | ||
| 97 | 97 | x = np.random.rand(1024).astype(float_type) |
| 98 | 98 | alpha = np.random.rand() * 5. |
| 99 | 99 | x_alpha_norm = (np.sum(np.abs(x)**alpha)/len(x))**(1/alpha) |
| 100 | − assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm) | |
| 100 | + assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 5) | |
| 101 | 101 | |
| 102 | 102 | class aubio_zero_crossing_rate_test(TestCase): |
| 103 | 103 | |