History

python/tests/test_specdesc.py: update to latest specdesc.c

Paul Brossier committed 13 years ago

Commit 8e9cb571 parent 78a42e21 file · +2 −2Browse files

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

Unified · Split

python/tests/test_specdesc.py+2−2
@@ -103,7 +103,7 @@ class aubio_specdesc(TestCase): · 102 unmodified lines
103103 assert_equal( 0., o(c))
104104 a = arange(c.length, dtype='float32')
105105 c.norm = a
106− assert_almost_equal( sum(a * log(1.+ a/1.e-10 ) ) / o(c), 1., decimal=6)
106+ assert_almost_equal( sum(a * log(1.+ a/1.e-1 ) ) / o(c), 1., decimal=6)
107107
108108 def test_mkl(self):
109109 o = specdesc("mkl")
@@ -111,7 +111,7 @@ class aubio_specdesc(TestCase): · 1 unmodified line
111111 assert_equal( 0., o(c))
112112 a = arange(c.length, dtype='float32')
113113 c.norm = a
114− assert_almost_equal( sum(log(1.+ a/1.e-10 ) ) / o(c), 1, decimal=6)
114+ assert_almost_equal( sum(log(1.+ a/1.e-1 ) ) / o(c), 1, decimal=6)
115115
116116 def test_specflux(self):
117117 o = specdesc("specflux")

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