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
FieldsFields inherited from class org.opt4j.operator.mutate.MutateDouble
normalize, random -
Constructor Summary
ConstructorsConstructorDescriptionMutateDoubleGauss(Rand random, NormalizeDouble normalize, double sigma) Constructs aMutateDoubleGauss. -
Method Summary
Modifier and TypeMethodDescriptionprotected doublemutateElement(double element, double lb, double ub, double p) Mutate one element of the list.Methods inherited from class org.opt4j.operator.mutate.MutateDoubleElementwise
mutateListMethods 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:MutateDoubleElementwiseMutate one element of the list.- Specified by:
mutateElementin classMutateDoubleElementwise- Parameters:
element- the elementlb- the lower boundub- the upper boundp- the mutation rate- Returns:
- the mutated element
-