'Construct a :obj:`MeanModel` by computing the mean value of the given
data.
:param data: data table
:type data: Orange.data.Table
:return: regression model, which always returns mean value
:rtype: :obj:`MeanModel`'

def fit_storage(self, data):

    if (not data.domain.has_continuous_class):
        raise ValueError('regression.MeanLearner    expects    a    domain    with    a    (single)    continuous    variable')
    dist = distribution.get_distribution(data, data.domain.class_var)
    return MeanModel(dist)
