classifier.gp
Class FitnessProportionate

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

public class FitnessProportionate
extends SelectionFunction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class classifier.gp.SelectionFunction
BESTSELECTION, FITNESSOVERSELECTED, FITNESSPROPORTIONATE, RANDOMSELECTION, TOURNAMENT, WORSTSELECTION
 
Constructor Summary
FitnessProportionate()
           
 
Method Summary
 Individual select(Individual[] group)
           
 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

FitnessProportionate

public FitnessProportionate()
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

select

public Individual select(Individual[] group)

toString

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

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