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 theBooleanGenotype
. 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
Constructors Constructor Description CrossoverBooleanRate(double rate, Rand random)
Constructs a newCrossoverBooleanRate
.
-
-
-
Constructor Detail
-
CrossoverBooleanRate
@Inject public CrossoverBooleanRate(double rate, Rand random)
Constructs a newCrossoverBooleanRate
.- Parameters:
rate
- the rate for a crossoverrandom
- the random number generator
-
-