gpalta.ops
Class IndSelectorSUS

java.lang.Object
  extended by gpalta.ops.IndSelector
      extended by gpalta.ops.IndSelectorSUS

public class IndSelectorSUS
extends IndSelector

Implements Stochastic Universal sampling (SUS) method


Constructor Summary
IndSelectorSUS(Config config, Ranking theRanking)
           
 
Method Summary
<T extends Individual>
java.util.List<T>
select(java.util.List<T> population)
          Performs the selection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndSelectorSUS

public IndSelectorSUS(Config config,
                      Ranking theRanking)
Method Detail

select

public <T extends Individual> java.util.List<T> select(java.util.List<T> population)
Description copied from class: IndSelector
Performs the selection

Specified by:
select in class IndSelector
Parameters:
population - A list of Trees from where to select the individuals
Returns:
A new list of Trees with the selected individuals. If a Tree is selected more than once, each instance of that Tree will be a totally independant individual (no other Trees will be modified when modifying that Tree)