com.rapidminer.operator.features.selection
Class UniformSelection

java.lang.Object
  extended by com.rapidminer.operator.features.selection.UniformSelection
All Implemented Interfaces:
PopulationOperator

public class UniformSelection
extends java.lang.Object
implements PopulationOperator

Selects a given fixed number of individuals by uniformly sampling from the current population until the desired population size is reached.

Author:
Ingo Mierswa

Constructor Summary
UniformSelection(int popSize, boolean keepBest, java.util.Random random)
           
 
Method Summary
 void operate(Population population)
          Modifies the population.
 boolean performOperation(int generation)
          The default implementation returns true for every generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformSelection

public UniformSelection(int popSize,
                        boolean keepBest,
                        java.util.Random random)
Method Detail

performOperation

public boolean performOperation(int generation)
The default implementation returns true for every generation.

Specified by:
performOperation in interface PopulationOperator

operate

public void operate(Population population)
Description copied from interface: PopulationOperator
Modifies the population.

Specified by:
operate in interface PopulationOperator


Copyright © 2001-2009 by Rapid-I