예제 #1
0
 def test_members(self):
     o = peakpicker()
예제 #2
0
 def setUp(self):
     self.o = peakpicker()
     self.o.set_threshold(threshold)
     self.vec = fvec(buf_size)
예제 #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())
예제 #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())
예제 #5
0
 def test_peakpicker_zeroes(self):
     o = peakpicker()
     assert_equal(o.get_thresholded_input(), 0.0)