edu.udo.cs.yale.tools.math.optimization.ec.es
Class SwitchingMutation
java.lang.Object
edu.udo.cs.yale.tools.math.optimization.ec.es.SwitchingMutation
- All Implemented Interfaces:
- PopulationOperator
public class SwitchingMutation
- extends java.lang.Object
- implements PopulationOperator
Checks for each value if it should mutated. Sets a non-min value
to min and a zero value to max.
- Version:
- $Id: SwitchingMutation.java,v 1.4 2006/04/05 08:57:26 ingomierswa
Exp $
- Author:
- Ingo Mierswa
Field Summary |
private double[] |
max
|
private double[] |
min
|
private double |
prob
|
private java.util.Random |
random
|
private int[] |
valueTypes
|
Constructor Summary |
SwitchingMutation(double prob,
double[] min,
double[] max,
int[] valueTypes,
java.util.Random random)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prob
private double prob
min
private double[] min
max
private double[] max
valueTypes
private int[] valueTypes
random
private java.util.Random random
SwitchingMutation
public SwitchingMutation(double prob,
double[] min,
double[] max,
int[] valueTypes,
java.util.Random random)
operate
public void operate(Population population)
- Specified by:
operate
in interface PopulationOperator
Copyright © 2001-2006