Exemplo n.º 1
0
 def test_members(self):
     o = peakpicker()
Exemplo n.º 2
0
 def setUp(self):
     self.o = peakpicker()
     self.o.set_threshold(threshold)
     self.vec = fvec(buf_size)
Exemplo n.º 3
0
 def test_peakpick_set_threshold(self):
     o = peakpicker()
     new_threshold = threshold
     o.set_threshold(new_threshold)
     assert_almost_equal(new_threshold, o.get_threshold())
Exemplo n.º 4
0
 def test_peakpicker_get_threshold(self):
     o = peakpicker()
     new_threshold = o.get_threshold()
     o.set_threshold(new_threshold)
     assert_equal(new_threshold, o.get_threshold())
Exemplo n.º 5
0
 def test_peakpicker_zeroes(self):
     o = peakpicker()
     assert_equal(o.get_thresholded_input(), 0.0)