Пример #1
0
 def normalize(self, x):
     return basic_stats.norm(x, self.energy_max, self.energy_min)
Пример #2
0
 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)
Пример #3
0
 def normalize(self, x):
     return basic_stats.norm(x, self.energy_max, self.energy_min)
Пример #4
0
 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)