org.artoflife.gp.reproduction
Class MutationReproducer

java.lang.Object
  |
  +--org.artoflife.gp.reproduction.CloneReproducer
        |
        +--org.artoflife.gp.reproduction.MutationReproducer
All Implemented Interfaces:
Reproducer, java.io.Serializable

public class MutationReproducer
extends CloneReproducer

Select a single parent, clone it, then mutate its genes with a probability set in config property [this.getClass().getName()].MutationProbability.

Author:
Steve Meyfroidt
See Also:
Serialized Form

Field Summary
protected  float probability
           
 
Constructor Summary
MutationReproducer()
           
 
Method Summary
 Individual reproduce(Selector parentPopulation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

probability

protected float probability
Constructor Detail

MutationReproducer

public MutationReproducer()
Method Detail

reproduce

public Individual reproduce(Selector parentPopulation)
Specified by:
reproduce in interface Reproducer
Overrides:
reproduce in class CloneReproducer
Returns:
new Individual resulting from the reproduction

artoflife pre0.1.0-dev

Copyright © 2002 the Art Of Life team. All Rights Reserved.