(self, **args)
Scale the population using the scaling method

      :param args: this parameter is passed to the scale method
Scale the population using the scaling method
Scale the population using the scaling method
def scale(self, **args):
      """ Scale the population using the scaling method

      :param args: this parameter is passed to the scale method

      """
      for it in self.scaleMethod.applyFunctions(self, **args):
         pass

      fit_sum = 0
      for ind in xrange(len(self)):
         fit_sum += self[ind].fitness

      self.stats["fitMax"] = max(self, key=key_fitness_score).fitness
      self.stats["fitMin"] = min(self, key=key_fitness_score).fitness
      self.stats["fitAve"] = fit_sum / float(len(self))

      self.sorted = False
def scale ( self , * * args ) : for it in self . scaleMethod . applyFunctions ( self , * * args ) : pass fit_sum = 0 for ind in xrange ( len ( self ) ) : fit_sum += self [ ind ] . fitness self . stats [ "fitMax" ] = max ( self , key = key_fitness_score ) . fitness self . stats [ "fitMin" ] = min ( self , key = key_fitness_score ) . fitness self . stats [ "fitAve" ] = fit_sum / float ( len ( self ) ) self . sorted = False