public class RNichedMutation extends java.lang.Object implements RealMutation
This class performs the niched mutation. The changes made in the classifier cannot result in another classifier that does not match with the environment (we can change a don't care for the value of the parent, or a value for a don't care value, but, for example, we would never change a '0' for a '1').
Constructor and Description |
---|
RNichedMutation() |
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 positionupperValue
- 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 positionupperValue
- is the current upper value of this classifier position.currentState
- is the current State of the environment for this
allele of the classifier.