Package org.opt4j.operator.crossover
Class CrossoverBooleanRate
java.lang.Object
org.opt4j.operator.crossover.CrossoverListRate<BooleanGenotype>
org.opt4j.operator.crossover.CrossoverBooleanRate
- All Implemented Interfaces:
Operator<BooleanGenotype>
,Crossover<BooleanGenotype>
,CrossoverBoolean
- Direct Known Subclasses:
CrossoverBooleanDefault
public class CrossoverBooleanRate
extends CrossoverListRate<BooleanGenotype>
implements CrossoverBoolean
Crossover for the
BooleanGenotype
. A point is determined as a
crossover point by a probability.-
Field Summary
Fields inherited from class org.opt4j.operator.crossover.CrossoverListRate
random, rate
-
Constructor Summary
ConstructorDescriptionCrossoverBooleanRate
(double rate, Rand random) Constructs a newCrossoverBooleanRate
. -
Method Summary
Methods inherited from class org.opt4j.operator.crossover.CrossoverListRate
crossover
-
Constructor Details
-
CrossoverBooleanRate
Constructs a newCrossoverBooleanRate
.- Parameters:
rate
- the rate for a crossoverrandom
- the random number generator
-