com.rapidminer.operator.features.construction
Class UnbalancedCrossover

java.lang.Object
  extended by com.rapidminer.operator.features.construction.ExampleSetBasedSelectionCrossover
      extended by com.rapidminer.operator.features.construction.UnbalancedCrossover
All Implemented Interfaces:
ExampleSetBasedPopulationOperator

public class UnbalancedCrossover
extends ExampleSetBasedSelectionCrossover

This PopulationOperator applies a crossover on two example sets. Crossover type can be ONE_POINT, UNIFORM, or SHUFFLE. In difference to SelectionCrossover the attribute vectors can have different lengths.
This crossover type should only be used for SINGLE_VALUEs, i.e. attributes without a block number (blocknumber can and should be assigned to value series attributes)!

Author:
Ingo Mierswa Exp $

Field Summary
 
Fields inherited from class com.rapidminer.operator.features.construction.ExampleSetBasedSelectionCrossover
CROSSOVER_TYPES, ONE_POINT, SHUFFLE, UNIFORM
 
Constructor Summary
UnbalancedCrossover(int type, double prob, java.util.Random random)
          Creates a new generating crossover with the given type which will be applied with the given probability.
 
Method Summary
 void crossover(AttributeWeightedExampleSet es1, AttributeWeightedExampleSet es2)
          Applies the crossover.
 
Methods inherited from class com.rapidminer.operator.features.construction.ExampleSetBasedSelectionCrossover
getType, operate, performOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnbalancedCrossover

public UnbalancedCrossover(int type,
                           double prob,
                           java.util.Random random)
Creates a new generating crossover with the given type which will be applied with the given probability.

Method Detail

crossover

public void crossover(AttributeWeightedExampleSet es1,
                      AttributeWeightedExampleSet es2)
Applies the crossover. Works directly on the given example sets.

Overrides:
crossover in class ExampleSetBasedSelectionCrossover


Copyright © 2001-2009 by Rapid-I