mss.ea.mut
Class FloatStepMutation
java.lang.Object
|
+--mss.ea.core.GeneticOperator
|
+--mss.ea.mut.Mutation
|
+--mss.ea.mut.ChromosomeMutation
|
+--mss.ea.mut.FloatMutation
|
+--mss.ea.mut.FloatStepMutation
- public class FloatStepMutation
- extends FloatMutation
Mutation of a float number with a maximal stepsize.
This operator will add a random float number within the range from 0.0 to a given float number.
The given number can be either positive or negative.
- Since:
- 0.1
- Version:
- 0.1 (12-04-00)
- Author:
- Andreas Rummler
Field Summary |
protected float |
step
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
step
protected float step
FloatStepMutation
public FloatStepMutation()
- Constructor.
The mutation propability is set to 0.05 and the mutation step size is set to 1.0.
FloatStepMutation
public FloatStepMutation(float propability)
- Constructor with mutation propability.
The mutation step size is set to 1.0.
- Parameters:
propability
- mutation propability
FloatStepMutation
public FloatStepMutation(float propability,
float stepsize)
- Constructor with mutation propability and mutation step size.
- Parameters:
propability
- mutation propabilitystep
- mutation step size
mutate
public void mutate(Chromosome cr)
throws MutationException
- Performs the mutation.
- Overrides:
mutate
in class ChromosomeMutation
- Parameters:
cr
- chromosome of type FloatChromosome- Throws:
MutationException
- thrown, if operator fails
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS