def _test(v): assert v.pmixturecoef in Range(0, 1), "Invalid mixture coef" assert v.rate in Positive(), "Invalid rate"
def _test(v): assert v.umixturecoef in Range(0, 1), "Invalid mixture coef"