public class IFreeMutation extends java.lang.Object implements IntegerMutation
This class implements the free mutation. So, a gene can be changed for any valid value in the representation.
Constructor and Description |
---|
IFreeMutation() |
Modifier and Type | Method and Description |
---|---|
int |
mutateLower(int lowerValue,
int upperValue,
int currentState,
int scale)
Mutates the lower real value.
|
int |
mutateUpper(int lowerValue,
int upperValue,
int currentState,
int scale)
Mutates the upper real value.
|
public int mutateLower(int lowerValue, int upperValue, int currentState, int scale)
Mutates the lower real value.
mutateLower
in interface IntegerMutation
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.
scale
- values scale.public int mutateUpper(int lowerValue, int upperValue, int currentState, int scale)
Mutates the upper real value.
mutateUpper
in interface IntegerMutation
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.
scale
- values scale.