(self, dist, domain=None)
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`
Construct :obj:`Orange.regression.MeanModel` that always returns the
        mean value computed from the given distribution.
Construct : obj : Orange . regression . MeanModel that always returns the mean value computed from the given distribution .
def __init__(self, dist, domain=None):
        """
        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`
        """
        # Don't call super().__init__ because it will raise an error since
        # domain is None.
        self.domain = domain
        self.dist = dist
        if dist.any():
            self.mean = self.dist.mean()
        else:
            self.mean = 0.0
def __init__ ( self , dist , domain = None ) : # Don't call super().__init__ because it will raise an error since # domain is None. self . domain = domain self . dist = dist if dist . any ( ) : self . mean = self . dist . mean ( ) else : self . mean = 0.0