def test_members(self): o = peakpicker()
def setUp(self): self.o = peakpicker() self.o.set_threshold(threshold) self.vec = fvec(buf_size)
def test_peakpick_set_threshold(self): o = peakpicker() new_threshold = threshold o.set_threshold(new_threshold) assert_almost_equal(new_threshold, o.get_threshold())
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())
def test_peakpicker_zeroes(self): o = peakpicker() assert_equal(o.get_thresholded_input(), 0.0)