'Return the current effective discretized domain.'

def discretized_domain(self):

    if (self.data is None):
        return None
    def disc_var(source):
        if (source and source.is_continuous):
            return self.discretized_var(source)
        else:
            return source
    attributes = [disc_var(v) for v in self.data.domain.attributes]
    attributes = [v for v in attributes if (v is not None)]
    class_var = disc_var(self.data.domain.class_var)
    domain = Orange.data.Domain(attributes, class_var, metas=self.data.domain.metas)
    return domain
