History

python/tests/test_fvec.py: cope with accumulated errors

Paul Brossier committed 10 years ago

Commit 44312de1 parent 88554b91 file · +1 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/test_fvec.py+1−1
@@ -97,7 +97,7 @@ class aubio_alpha_norm(TestCase): · 96 unmodified lines
9797 x = np.random.rand(1024).astype(float_type)
9898 alpha = np.random.rand() * 5.
9999 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)
101101
102102 class aubio_zero_crossing_rate_test(TestCase):
103103

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t