public class TFreeMutation extends java.lang.Object implements TernaryMutation
This class implements the free mutation. So, a gene can be changed for any valid value in the representation.
Constructor and Description |
---|
TFreeMutation() |
Modifier and Type | Method and Description |
---|---|
char |
mutate(char pos,
char currentState)
Mutates the character.
|
public char mutate(char pos, char currentState)
Mutates the character.
mutate
in interface TernaryMutation
pos
- is the value of the classifier allele.
currentState
- is the value of that classifier position in the
environment. It in needed for the niched mutation.