com.rapidminer.tools.math.optimization.ec.es
Class SparsityMutation
java.lang.Object
com.rapidminer.tools.math.optimization.ec.es.SparsityMutation
- All Implemented Interfaces:
- Mutation, PopulationOperator
public class SparsityMutation
- extends java.lang.Object
- implements Mutation
Checks for each value if it should mutated. Sets a non-min value
to min and a min value to a random value between min and max.
- Author:
- Ingo Mierswa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SparsityMutation
public SparsityMutation(double prob,
double[] min,
double[] max,
OptimizationValueType[] valueTypes,
RandomGenerator random)
setValueType
public void setValueType(int index,
OptimizationValueType type)
- Specified by:
setValueType
in interface Mutation
operate
public void operate(Population population)
- Specified by:
operate
in interface PopulationOperator
Copyright © 2001-2009 by Rapid-I