Package org.opt4j.operator.mutate
Class MutateDoubleGauss
java.lang.Object
org.opt4j.operator.mutate.MutateDouble
org.opt4j.operator.mutate.MutateDoubleElementwise
org.opt4j.operator.mutate.MutateDoubleGauss
- All Implemented Interfaces:
Operator<DoubleGenotype>
,Mutate<DoubleGenotype>
The
MutateDoubleGauss
.-
Field Summary
Fields inherited from class org.opt4j.operator.mutate.MutateDouble
normalize, random
-
Constructor Summary
ConstructorDescriptionMutateDoubleGauss
(Rand random, NormalizeDouble normalize, double sigma) Constructs aMutateDoubleGauss
. -
Method Summary
Modifier and TypeMethodDescriptionprotected double
mutateElement
(double element, double lb, double ub, double p) Mutate one element of the list.Methods inherited from class org.opt4j.operator.mutate.MutateDoubleElementwise
mutateList
Methods inherited from class org.opt4j.operator.mutate.MutateDouble
mutate
-
Field Details
-
sigma
protected final double sigma
-
-
Constructor Details
-
MutateDoubleGauss
Constructs aMutateDoubleGauss
.- Parameters:
random
- the random number generatornormalize
- the normalizersigma
- the sigma value
-
-
Method Details
-
mutateElement
protected double mutateElement(double element, double lb, double ub, double p) Description copied from class:MutateDoubleElementwise
Mutate one element of the list.- Specified by:
mutateElement
in classMutateDoubleElementwise
- Parameters:
element
- the elementlb
- the lower boundub
- the upper boundp
- the mutation rate- Returns:
- the mutated element
-