예제 #1
0
파일: model.py 프로젝트: mambocab/sbse14
 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)