def __init__(self, order=25, stage=1): """Initialization Raises ------ ValueError if invalid number of stage is specified """ self.order = order assert_stage(stage) self.stage = stage self.delay = pysptk.glsadf_delay(order, stage)
def test_glsadf(order, stage): delay = pysptk.glsadf_delay(order, stage) __test_filt_base(pysptk.glsadf, order, delay, stage) __test_filt_base(pysptk.glsadft, order, delay, stage)
def test_glsadf(): for order in [20, 25, 30]: for stage in six.moves.range(1, 7): delay = pysptk.glsadf_delay(order, stage) yield __test_filt_base, pysptk.glsadf, order, delay, stage