def __init__(self, integrand, abs_tol, rel_tol, n_init, n_max, fudge, check_cone, control_variates, control_variate_means, update_beta, ptransform, coefv, allowed_levels, allowed_distribs, cast_complex):
    self.parameters = ['abs_tol', 'rel_tol', 'n_init', 'n_max']
    self.abs_tol = float(abs_tol)
    self.rel_tol = float(rel_tol)
    m_min = log2(n_init)
    m_max = log2(n_max)
    if (((m_min % 1) != 0.0) or (m_min < 8.0) or ((m_max % 1) != 0.0)):
        warning_s = '\n                n_init and n_max must be a powers of 2.\n                n_init must be >= 2^8.\n                Using n_init = 2^10 and n_max=2^35.'
        warnings.warn(warning_s, ParameterWarning)
        m_min = 10.0
        m_max = 35.0
    self.n_init = (2.0 ** m_min)
    self.n_max = (2.0 ** m_max)
    self.m_min = m_min
    self.m_max = m_max
    self.fudge = fudge
    self.check_cone = check_cone
    self.coefv = coefv
    self.ptransform = ptransform
    self.cast_complex = cast_complex
    self.integrand = integrand
    self.true_measure = self.integrand.true_measure
    self.discrete_distrib = self.integrand.discrete_distrib
    self.cv = control_variates
    self.cv_mu = control_variate_means
    self.ub = update_beta
    super(CubQMCLDG, self).__init__(allowed_levels, allowed_distribs, allow_vectorized_integrals=False)
def __init__(self, integrand, abs_tol, rel_tol, n_init, n_max, fudge, check_cone, control_variates, control_variate_means, update_beta, ptransform, coefv, allowed_levels, allowed_distribs, cast_complex):
    self.parameters = ['abs_tol', 'rel_tol', 'n_init', 'n_max']
    self.abs_tol = float(abs_tol)
    self.rel_tol = float(rel_tol)
    m_min = log2(n_init)
    m_max = log2(n_max)
    if (((m_min % 1) != 0.0) or (m_min < 8.0) or ((m_max % 1) != 0.0)):
        warning_s = '\n                n_init and n_max must be a powers of 2.\n                n_init must be >= 2^8.\n                Using n_init = 2^10 and n_max=2^35.'
        warnings.warn(warning_s, ParameterWarning)
        m_min = 10.0
        m_max = 35.0
    self.n_init = (2.0 ** m_min)
    self.n_max = (2.0 ** m_max)
    self.m_min = m_min
    self.m_max = m_max
    self.fudge = fudge
    self.check_cone = check_cone
    self.coefv = coefv
    self.ptransform = ptransform
    self.cast_complex = cast_complex
    self.integrand = integrand
    self.true_measure = self.integrand.true_measure
    self.discrete_distrib = self.integrand.discrete_distrib
    self.cv = control_variates
    self.cv_mu = control_variate_means
    self.ub = update_beta
    super(CubQMCLDG, self).__init__(allowed_levels, allowed_distribs, allow_vectorized_integrals=False)