projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bde4f64
)
[tests] mfcc norm/scale with real values
author
Paul Brossier
<piem@piem.org>
Mon, 3 Dec 2018 14:00:40 +0000
(15:00 +0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 3 Dec 2018 14:00:40 +0000
(15:00 +0100)
python/tests/test_mfcc.py
patch
|
blob
|
history
diff --git
a/python/tests/test_mfcc.py
b/python/tests/test_mfcc.py
index
1a65686
..
6177a67
100755
(executable)
--- a/
python/tests/test_mfcc.py
+++ b/
python/tests/test_mfcc.py
@@
-116,13
+116,15
@@
class aubio_mfcc_fb_params(TestCase):
def test_set_scale(self):
buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
def test_set_scale(self):
buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
- m.set_scale(10.)
+ m.set_scale(10.5)
+ assert m.get_scale() == 10.5
m(cvec(buf_size))
def test_set_power(self):
buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
m(cvec(buf_size))
def test_set_power(self):
buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
- m.set_power(2.)
+ m.set_power(2.5)
+ assert m.get_power() == 2.5
m(cvec(buf_size))
def test_set_mel_coeffs(self):
m(cvec(buf_size))
def test_set_mel_coeffs(self):