com.rapidminer.operator.features.selection
Class SelectionCrossover
java.lang.Object
com.rapidminer.operator.features.selection.SelectionCrossover
- All Implemented Interfaces:
- PopulationOperator
public class SelectionCrossover
- extends java.lang.Object
- implements PopulationOperator
Crossover operator for the used bitlists of example sets. An example set is
selected with a given fixed propability and a mating partner is determined
randomly. Crossover can be either one point, uniform or shuffled. Please note
that shuffled crossover first uniformly determines the number of attributes
which should be swapped. Therefore uniform and shuffle crossover are not
equivalent.
Only useful if all example sets have the same (number of) attributes.
- Author:
- Simon Fischer, Ingo Mierswa
Exp $
|
Constructor Summary |
SelectionCrossover(int type,
double prob,
java.util.Random random,
int minNumber,
int maxNumber,
int exactNumber)
|
|
Method Summary |
void |
crossover(double[] weights1,
double[] weights2)
|
int |
getType()
|
void |
operate(Population population)
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 |
CROSSOVER_TYPES
public static final java.lang.String[] CROSSOVER_TYPES
ONE_POINT
public static final int ONE_POINT
- See Also:
- Constant Field Values
UNIFORM
public static final int UNIFORM
- See Also:
- Constant Field Values
SHUFFLE
public static final int SHUFFLE
- See Also:
- Constant Field Values
SelectionCrossover
public SelectionCrossover(int type,
double prob,
java.util.Random random,
int minNumber,
int maxNumber,
int exactNumber)
performOperation
public boolean performOperation(int generation)
- The default implementation returns true for every generation.
- Specified by:
performOperation in interface PopulationOperator
getType
public int getType()
crossover
public void crossover(double[] weights1,
double[] weights2)
operate
public void operate(Population population)
- Description copied from interface:
PopulationOperator
- Modifies the population.
- Specified by:
operate in interface PopulationOperator
Copyright © 2001-2009 by Rapid-I