public static < T > PopulationData < T > getPopulationData ( List < EvaluatedCandidate < T > > evaluatedPopulation , boolean naturalFitness , int eliteCount , int iterationNumber , long startTime ) { DataSet stats = new DataSet ( evaluatedPopulation . size ( ) ) ; for ( EvaluatedCandidate < T > candidate : evaluatedPopulation ) { stats . addValue ( candidate . getFitness ( ) ) ; } return new PopulationData < T > ( evaluatedPopulation . get ( 0 ) . getCandidate ( ) , evaluatedPopulation . get ( 0 ) . getFitness ( ) , stats . getArithmeticMean ( ) , stats . getStandardDeviation ( ) , naturalFitness , stats . getSize ( ) , eliteCount , iterationNumber , System . currentTimeMillis ( ) - startTime ) ; }
Gets data about the current population including the fittest candidate and statistics about the population as a whole .