classifier.gp
Class BestSelection

java.lang.Object
  extended byclassifier.gp.SelectionFunction
      extended byclassifier.gp.BestSelection
All Implemented Interfaces:
java.io.Serializable

public class BestSelection
extends SelectionFunction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class classifier.gp.SelectionFunction
BESTSELECTION, FITNESSOVERSELECTED, FITNESSPROPORTIONATE, RANDOMSELECTION, TOURNAMENT, WORSTSELECTION
 
Constructor Summary
BestSelection()
           
 
Method Summary
 Individual select(Population p)
          Select an individual on the basis of the selected criteria
 java.lang.String toString()
          Just a string
 
Methods inherited from class classifier.gp.SelectionFunction
createSelectionFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BestSelection

public BestSelection()
Method Detail

select

public Individual select(Population p)
Description copied from class: SelectionFunction
Select an individual on the basis of the selected criteria

Specified by:
select in class SelectionFunction
Parameters:
p - population of origin
Returns:
the selected individual

toString

public java.lang.String toString()
Description copied from class: SelectionFunction
Just a string

Overrides:
toString in class SelectionFunction
Returns:
"Funzione di Selezione: "