net.sf.amiba.evolve.population
Class RouletteWheelSelector<T>

Object
  extended by Selector<T>
      extended by RouletteWheelSelector<T>

public class RouletteWheelSelector<T>
extends Selector<T>

this class implements roulette wheel selection

Author:
juber patel

Constructor Summary
RouletteWheelSelector(ElitismEnum elitism, int elites)
           
 
Method Summary
 List<Individual<T>> select(List<Individual<T>> individuals)
          implements roulette wheel selection in a simplistic manner
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouletteWheelSelector

public RouletteWheelSelector(ElitismEnum elitism,
                             int elites)
Parameters:
elitism - the type of elitism
elites - number of best Individuals to be carried into the next generation
Method Detail

select

public List<Individual<T>> select(List<Individual<T>> individuals)
implements roulette wheel selection in a simplistic manner

Specified by:
select in class Selector<T>
Returns: