Package org.opt4j.operators.mutate
Class ConstantMutationRate
java.lang.Object
org.opt4j.operators.mutate.ConstantMutationRate
- All Implemented Interfaces:
MutationRate
Constant mutation rate. The
MutationRate is set once.-
Constructor Summary
ConstructorsConstructorDescriptionConstantMutationRate(double rate) Constructs aConstantMutationRatewith a given value. -
Method Summary
-
Constructor Details
-
ConstantMutationRate
Constructs aConstantMutationRatewith a given value.- Parameters:
rate- the mutation rate value
-
-
Method Details
-
get
Description copied from interface:MutationRateReturns the mutation rate as a double value.- Specified by:
getin interfaceMutationRate- Returns:
- the mutation rate
-
set
Description copied from interface:MutationRateSets the mutation to a double value.- Specified by:
setin interfaceMutationRate- Parameters:
value- the new muation rate
-