Package org.opt4j.operator.mutate
Class MutateDoublePolynomial
- java.lang.Object
-
- org.opt4j.operator.mutate.MutateDouble
-
- org.opt4j.operator.mutate.MutateDoubleElementwise
-
- org.opt4j.operator.mutate.MutateDoublePolynomial
-
- All Implemented Interfaces:
Operator<DoubleGenotype>,Mutate<DoubleGenotype>
- Direct Known Subclasses:
MutateDoubleDefault
public class MutateDoublePolynomial extends MutateDoubleElementwise
-
-
Field Summary
Fields Modifier and Type Field Description protected doubleeta-
Fields inherited from class org.opt4j.operator.mutate.MutateDouble
normalize, random
-
-
Constructor Summary
Constructors Constructor Description MutateDoublePolynomial(Rand random, NormalizeDouble normalize, double eta)Constructs aMutateDoubleGausswith aRandrandom number generator, aNormalizeDouble, and an eta value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublemutateElement(double x, 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
-
-
-
-
Constructor Detail
-
MutateDoublePolynomial
@Inject public MutateDoublePolynomial(Rand random, NormalizeDouble normalize, double eta)
Constructs aMutateDoubleGausswith aRandrandom number generator, aNormalizeDouble, and an eta value.- Parameters:
random- the random number generatornormalize- the normalizereta- the eta value
-
-
Method Detail
-
mutateElement
protected double mutateElement(double x, double lb, double ub, double p)Description copied from class:MutateDoubleElementwiseMutate one element of the list.- Specified by:
mutateElementin classMutateDoubleElementwise- Parameters:
x- the elementlb- the lower boundub- the upper boundp- the mutation rate- Returns:
- the mutated element
-
-