@staticmethod
def uniform(model: GraphModel, var_idx: List[int]):
    'Creates factor defining uniform distribution.'
    total_domain_size = 1
    for i in var_idx:
        total_domain_size *= model.get_variable(i).domain.size()
    return LDFactor(model, var_idx, Prob.uniform(total_domain_size))
Creates factor defining uniform distribution.
@staticmethod
def uniform(model: GraphModel, var_idx: List[int]):
    
    total_domain_size = 1
    for i in var_idx:
        total_domain_size *= model.get_variable(i).domain.size()
    return LDFactor(model, var_idx, Prob.uniform(total_domain_size))