Package org.opt4j.operators.mutate
Interface Mutate<G extends org.opt4j.core.Genotype>
-
- Type Parameters:
G
- the type of genotype
- All Superinterfaces:
org.opt4j.core.optimizer.Operator<G>
- All Known Subinterfaces:
MutateInteger
,MutatePermutation
- All Known Implementing Classes:
MutateBoolean
,MutateDouble
,MutateDoubleDefault
,MutateDoubleElementwise
,MutateDoubleGauss
,MutateDoublePolynomial
,MutateGenericImplementation
,MutateIntegerRandom
,MutatePermutationInsert
,MutatePermutationMixed
,MutatePermutationRevert
,MutatePermutationSwap
public interface Mutate<G extends org.opt4j.core.Genotype> extends org.opt4j.core.optimizer.Operator<G>
Mutate
operator that performs a mutation for aGenotype
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>>
getOperatorType()
void
mutate(G genotype, double p)
Performs a mutation for aGenotype
.
-
-
-
Method Detail
-
mutate
void mutate(G genotype, double p)
Performs a mutation for aGenotype
.- Parameters:
genotype
- the genotype to be mutatedp
- the mutation rate
-
getOperatorType
default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>> getOperatorType()
- Specified by:
getOperatorType
in interfaceorg.opt4j.core.optimizer.Operator<G extends org.opt4j.core.Genotype>
-
-