eaLib API Docs
Last Modified : January 7 2002

mss.ea.sel
Class FitnessTruncationSelection

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.sel.Selection
              |
              +--mss.ea.sel.TruncationSelection
                    |
                    +--mss.ea.sel.FitnessTruncationSelection
All Implemented Interfaces:
SingleStreamProcessor, StreamProcessor

public class FitnessTruncationSelection
extends TruncationSelection

Truncation selection by fitness value. This operator selects all individuals that hav a better fitness than the given threshold.

Since:
0.1
Version:
0.1 (06-03-2001)
Author:
Andreas Rummler

Field Summary
protected  Fitness threshold
          Threshold fitness value.
 
Fields inherited from class mss.ea.sel.TruncationSelection
rand
 
Fields inherited from class mss.ea.sel.Selection
multSelection, numberPerSelection
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
FitnessTruncationSelection(int numberPerSelection, Fitness threshold)
          Constructor with number per selection and threshold.
 
Method Summary
 Fitness getThreshold()
          Gets the threshold.
protected  int getThresholdIndex(IndividualStream is)
           
 void setThreshold(Fitness f)
          Sets the threshold.
 
Methods inherited from class mss.ea.sel.TruncationSelection
select
 
Methods inherited from class mss.ea.sel.Selection
getSelectionSize, process, setSelectionSize
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mss.ea.core.StreamProcessor
getName
 

Field Detail

threshold

protected Fitness threshold
Threshold fitness value.
Constructor Detail

FitnessTruncationSelection

public FitnessTruncationSelection(int numberPerSelection,
                                  Fitness threshold)
Constructor with number per selection and threshold.
Parameters:
numberPerSelection - number of individuals per selection
threshold - threshold fitness value
Method Detail

setThreshold

public void setThreshold(Fitness f)
Sets the threshold.
Parameters:
f - new threshold

getThreshold

public Fitness getThreshold()
Gets the threshold.
Returns:
current threshold

getThresholdIndex

protected int getThresholdIndex(IndividualStream is)
Overrides:
getThresholdIndex in class TruncationSelection

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS