* @param chromosome The chromosome to mutate.
*/
public final void performMutation(final Chromosome chromosome) {
for (final Gene gene : chromosome.getGenes()) {
if (gene instanceof DoubleGene) {
final DoubleGene doubleGene = (DoubleGene) gene;
double value = doubleGene.getValue();
value += (perturbAmount - (Math.random() * perturbAmount * 2));
doubleGene.setValue(value);
}
}
}