mss.ea.mut
Class DoubleRangeMutation
java.lang.Object
|
+--mss.ea.core.GeneticOperator
|
+--mss.ea.mut.Mutation
|
+--mss.ea.mut.ChromosomeMutation
|
+--mss.ea.mut.DoubleMutation
|
+--mss.ea.mut.DoubleRangeMutation
- public class DoubleRangeMutation
- extends DoubleMutation
Mutation of a double number with a mutation range.
This operator will add a random double number within the given range.
- Since:
- 0.1
- Version:
- 0.1 (12-04-00)
- Author:
- Andreas Rummler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lowerBound
protected double lowerBound
upperBound
protected double upperBound
DoubleRangeMutation
public DoubleRangeMutation()
- Constructor.
The mutation propability is set to 0.05 and the mutation range is set to [-1.0, 1.0].
DoubleRangeMutation
public DoubleRangeMutation(float propability)
- Constructor with mutation propability.
The mutation range is set to [-1.0, 1.0].
- Parameters:
propability
- mutation propability
DoubleRangeMutation
public DoubleRangeMutation(float propability,
double lowerBound,
double upperBound)
- Constructor with mutation propability and mutation range.
If lowerBound > upperBound, the mutation range is silently set to [-1.0, 1.0].
- Parameters:
propability
- mutation propabilitylowerBound
- lower bound of mutation rangeupperBound
- upper bound of mutation range
mutate
public void mutate(Chromosome cr)
throws MutationException
- Performs the mutation.
- Overrides:
mutate
in class ChromosomeMutation
- Parameters:
cr
- chromosome of type DoubleChromosome- Throws:
MutationException
- thrown, if operator fails
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS