eaLib API Docs
Last Modified : January 7 2002

mss.ea.mut
Class DoubleStepMutation

java.lang.Object
  |
  +--mss.ea.core.GeneticOperator
        |
        +--mss.ea.mut.Mutation
              |
              +--mss.ea.mut.ChromosomeMutation
                    |
                    +--mss.ea.mut.DoubleMutation
                          |
                          +--mss.ea.mut.DoubleStepMutation

public class DoubleStepMutation
extends DoubleMutation

Mutation of a double number with a maximal stepsize. This operator will add a random double number within the range from 0.0 to a given double 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  double step
           
 
Fields inherited from class mss.ea.mut.DoubleMutation
rand
 
Fields inherited from class mss.ea.mut.ChromosomeMutation
mutationPropability
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
DoubleStepMutation()
          Constructor.
DoubleStepMutation(float propability)
          Constructor with mutation propability.
DoubleStepMutation(float propability, double stepsize)
          Constructor with mutation propability and mutation step size.
 
Method Summary
 void mutate(Chromosome cr)
          Performs the mutation.
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

step

protected double step
Constructor Detail

DoubleStepMutation

public DoubleStepMutation()
Constructor. The mutation propability is set to 0.05 and the mutation step size is set to 1.0.

DoubleStepMutation

public DoubleStepMutation(float propability)
Constructor with mutation propability. The mutation step size is set to 1.0.
Parameters:
propability - mutation propability

DoubleStepMutation

public DoubleStepMutation(float propability,
                          double stepsize)
Constructor with mutation propability and mutation step size.
Parameters:
propability - mutation propability
step - mutation step size
Method Detail

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

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS