(population, fitness=False)
Population score distribution histogram

   Example:
      >>> Interaction.plotHistPopScore(population)

   :param population: population object (:class:`GPopulation.GPopulation`)
   :param fitness: if True, the fitness score will be used, otherwise, the raw.
   :rtype: None
Population score distribution histogram
Population score distribution histogram
def plotHistPopScore(population, fitness=False):
   """ Population score distribution histogram

   Example:
      >>> Interaction.plotHistPopScore(population)

   :param population: population object (:class:`GPopulation.GPopulation`)
   :param fitness: if True, the fitness score will be used, otherwise, the raw.
   :rtype: None

   """
   score_list = getPopScores(population, fitness)
   n, bins, patches = pylab.hist(score_list, 50, facecolor='green', alpha=0.75, normed=1)
   pylab.plot(bins, pylab.normpdf(bins, numpy.mean(score_list), numpy.std(score_list)), 'r--')
   pylab.xlabel('Score')
   pylab.ylabel('Frequency')
   pylab.grid(True)
   pylab.title("Plot of population score distribution")
   pylab.show()
def plotHistPopScore ( population , fitness = False ) : score_list = getPopScores ( population , fitness ) n , bins , patches = pylab . hist ( score_list , 50 , facecolor = 'green' , alpha = 0.75 , normed = 1 ) pylab . plot ( bins , pylab . normpdf ( bins , numpy . mean ( score_list ) , numpy . std ( score_list ) ) , 'r--' ) pylab . xlabel ( 'Score' ) pylab . ylabel ( 'Frequency' ) pylab . grid ( True ) pylab . title ( "Plot of population score distribution" ) pylab . show ( )