com.rapidminer.operator.features
Class KeepBest

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

public class KeepBest
extends java.lang.Object
implements PopulationOperator

Keeps the n best individuals and kicks out the rest.

Author:
Simon Fischer, Ingo Mierswa

Constructor Summary
KeepBest(int bestN)
           
 
Method Summary
 void operate(Population pop)
          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

KeepBest

public KeepBest(int bestN)
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 pop)
Description copied from interface: PopulationOperator
Modifies the population.

Specified by:
operate in interface PopulationOperator


Copyright © 2001-2009 by Rapid-I