projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88554b9
)
python/tests/test_fvec.py: cope with accumulated errors
author
Paul Brossier
<piem@piem.org>
Wed, 11 May 2016 09:00:22 +0000
(11:00 +0200)
committer
Paul Brossier
<piem@piem.org>
Wed, 11 May 2016 09:00:22 +0000
(11:00 +0200)
python/tests/test_fvec.py
patch
|
blob
|
history
diff --git
a/python/tests/test_fvec.py
b/python/tests/test_fvec.py
index
99984f4
..
48b89ee
100755
(executable)
--- a/
python/tests/test_fvec.py
+++ b/
python/tests/test_fvec.py
@@
-97,7
+97,7
@@
class aubio_alpha_norm(TestCase):
x = np.random.rand(1024).astype(float_type)
alpha = np.random.rand() * 5.
x_alpha_norm = (np.sum(np.abs(x)**alpha)/len(x))**(1/alpha)
- assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm)
+ assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm
, decimal = 5
)
class aubio_zero_crossing_rate_test(TestCase):