mutation Flip Bit
Flip the value of the attributes of the input chromosome. The chromosome is expected to be a BooleanArray. This mutation is usually applied on boolean individuals.
Example:
Before mutation: 1010011
After mutation: 1001101
Content copied to clipboard
Parameters
value
chromosome to be mutated
chance
the probability of each attribute to be flipped.
Flip the value of the attributes of the input chromosome. The chromosome is expected to be a IntArray with only 1 or 0 values. For other values, correct behavior is not guaranteed. Note! This mutation is usually applied on BooleanArray.
Example:
Before mutation: 1010011
After mutation: 1001101
Content copied to clipboard
Parameters
value
chromosome to be mutated
chance
the probability of each attribute to be flipped.