|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectclassifier.gp.SelectionFunction
To choose the current method to select individual program
| Field Summary | |
(package private) static int |
BESTSELECTION
5 |
(package private) static int |
FITNESSOVERSELECTED
2 |
(package private) static int |
FITNESSPROPORTIONATE
3 |
(package private) static int |
RANDOMSELECTION
4 |
(package private) static int |
TOURNAMENT
1 |
(package private) static int |
WORSTSELECTION
6 |
| Constructor Summary | |
SelectionFunction()
|
|
| Method Summary | |
protected static SelectionFunction |
createSelectionFunction(int selection_function,
java.util.Properties p)
To choose the selection function through a number |
abstract 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final int TOURNAMENT
static final int FITNESSOVERSELECTED
static final int FITNESSPROPORTIONATE
static final int RANDOMSELECTION
static final int BESTSELECTION
static final int WORSTSELECTION
| Constructor Detail |
public SelectionFunction()
| Method Detail |
public abstract Individual select(Population p)
p - population of origin
public java.lang.String toString()
protected static SelectionFunction createSelectionFunction(int selection_function,
java.util.Properties p)
selection_function - number that specify which funcition to use;p - parameters to pass to the selected funciton
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||