public class RFreeMutation extends java.lang.Object implements RealMutation
This class implements the free mutation. So, a gene can be changed for any valid value in the representation.
Constructor and Description |
---|
RFreeMutation() |
Modifier and Type | Method and Description |
---|---|
double |
mutateLower(double lowerValue,
double upperValue,
double currentState)
Mutates the lower real value.
|
double |
mutateUpper(double lowerValue,
double upperValue,
double currentState)
Mutates the upper real value.
|
public double mutateLower(double lowerValue, double upperValue, double currentState)
Mutates the lower real value.
mutateLower
in interface RealMutation
lowerValue
- is the current lower value of this classifier position
upperValue
- is the current upper value of this classifier position.
currentState
- is the current State of the environment for this
allele of the classifier.
public double mutateUpper(double lowerValue, double upperValue, double currentState)
Mutates the upper real value.
mutateUpper
in interface RealMutation
lowerValue
- is the current lower value of this classifier position
upperValue
- is the current upper value of this classifier position.
currentState
- is the current State of the environment for this
allele of the classifier.