* the probability of an mutation
*
*/
@Override
public void mutate(double mutationRate, int minSize, int maxSize) {
BinomialDistribution mutationNumberDistribution =
new BinomialDistribution(getRNG(), mutationRate, genome.length);
int numOfMutations =
(int) Math.round(mutationNumberDistribution.getRandomNumber());
int[] mutationPositions =
RandomSampler.sampleUnique(numOfMutations, genome.length, getRNG());
for (int mutationPosition : mutationPositions) {
genome[mutationPosition] = !genome[mutationPosition];
}