def __call__(self, d):
    r = {}
    p = (self.value_scale[1] * (d.max_value_bin() + self.value_scale[0]))
    s = (self.selectivity_scale[1] * (self.selectivity(d) + self.selectivity_scale[0]))
    r[''] = Pref(preference=p, selectivity=s)
    (p, s) = self.second_peak(d)
    p = (self.value_scale[1] * (p + self.value_scale[0]))
    s = (self.selectivity_scale[1] * (s + self.selectivity_scale[0]))
    r['Mode2'] = Pref(preference=p, selectivity=s)
    return r
def __call__(self, d):
    r = {}
    p = (self.value_scale[1] * (d.max_value_bin() + self.value_scale[0]))
    s = (self.selectivity_scale[1] * (self.selectivity(d) + self.selectivity_scale[0]))
    r[] = Pref(preference=p, selectivity=s)
    (p, s) = self.second_peak(d)
    p = (self.value_scale[1] * (p + self.value_scale[0]))
    s = (self.selectivity_scale[1] * (s + self.selectivity_scale[0]))
    r['Mode2'] = Pref(preference=p, selectivity=s)
    return r