def normalize(self, x): return basic_stats.norm(x, self.energy_max, self.energy_min)
def norm(self, x): "normalize the argument with respect to maximum and minimum" if self.hi == self.lo: raise ValueError('hi and lo of {} are equal'.format(self.__name__)) return basic_stats.norm(x, self.lo, self.hi)
def normalize(self, x): return basic_stats.norm(x, self.energy_max, self.energy_min)
def norm(self, x): "normalize the argument with respect to maximum and minimum" if self.hi == self.lo: raise ValueError('hi and lo of {} are equal'.format(self.__name__)) return basic_stats.norm(x, self.lo, self.hi)