def test_mglsadf(): for order in [20, 25, 30]: for alpha in [0.0, 0.35, 0.5]: for stage in six.moves.range(1, 7): delay = pysptk.mglsadf_delay(order, stage) yield __test_filt_base, pysptk.mglsadf, order, delay, alpha, stage yield __test_filt_base, pysptk.mglsadft, order, delay, alpha, stage
def __init__(self, order=25, alpha=0.35, stage=1): """Initialization Raises ------ ValueError if invalid number of stage is specified """ self.order = order assert_stage(stage) self.alpha = alpha self.stage = stage self.delay = pysptk.mglsadf_delay(order, stage)
def test_mglsadf(order, alpha, stage): delay = pysptk.mglsadf_delay(order, stage) __test_filt_base(pysptk.mglsadf, order, delay, alpha, stage) __test_filt_base(pysptk.mglsadft, order, delay, alpha, stage)
def test_mglsadf(): for order in [20, 25, 30]: for alpha in [0.0, 0.35, 0.5]: for stage in six.moves.range(1, 7): delay = pysptk.mglsadf_delay(order, stage) yield __test_filt_base, pysptk.mglsadf, order, delay, alpha, stage