edu.udo.cs.yale.operator.features.aggregation
Class AggregationMutation
java.lang.Object
edu.udo.cs.yale.operator.features.aggregation.AggregationMutation
public class AggregationMutation
- extends java.lang.Object
Performs an aggregation mutation on integer arrays. Each feature value is
mutated with probability 1/n. Mutation is done by randomly selecting a new
value between -1 and max(values).
- Version:
- $Id: AggregationMutation.java,v 1.4 2006/04/05 08:57:23 ingomierswa
Exp $
- Author:
- Ingo Mierswa
Method Summary |
private boolean |
isValid(int[] individual)
Checks if at least one feature was selected. |
private void |
mutate(int[] individual)
Changes the individual (each gene with probability 1 / n). |
void |
mutate(java.util.List<AggregationIndividual> population)
Invokes the method mutate(int[]) for each individual. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
random
private RandomGenerator random
AggregationMutation
public AggregationMutation(RandomGenerator random)
isValid
private boolean isValid(int[] individual)
- Checks if at least one feature was selected.
mutate
public void mutate(java.util.List<AggregationIndividual> population)
- Invokes the method mutate(int[]) for each individual. The parents are
kept.
mutate
private void mutate(int[] individual)
- Changes the individual (each gene with probability 1 / n). Make clone if
original individual should be kept.
Copyright © 2001-2006