'Construct :obj:`Orange.regression.MeanModel` that always returns the
mean value computed from the given distribution.
If the distribution is empty, it constructs a model that returns zero.
:param dist: domain for the `Table`
:type dist: Orange.statistics.distribution.Continuous
:return: regression model that returns mean value
:rtype: :obj:`MeanModel`'

def __init__(self, dist, domain=None):

    self.domain = domain
    self.dist = dist
    if dist.any():
        self.mean = self.dist.mean()
    else:
        self.mean = 0.0
