All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class evolution.EvolutionParmImpl

java.lang.Object
   |
   +----evolution.EvolutionParmImpl

public class EvolutionParmImpl
extends Object
implements EvolutionParm
Implementation of EvolutionParm used in RandomAccessGenome and SequentialGenome.


Variable Index

 o dieRate
The number of individuals to be killed in the process of breeding a new generation divided by the size of the whole population.
 o inertia
In the mitosis, when a gene is taken from one of the parents, this parameter is the probability that the next gene is taken from the same parent.
 o mutationRate
The mutation rate.

Constructor Index

 o EvolutionParmImpl(float, float, float)
Create myself containing the specified dieRate, mutationRate, inertia.

Method Index

 o check(float)
 o dieRate()
 o inertia()
 o mutationRate()

Variables

 o inertia
 protected float inertia
In the mitosis, when a gene is taken from one of the parents, this parameter is the probability that the next gene is taken from the same parent.

 o dieRate
 protected float dieRate
The number of individuals to be killed in the process of breeding a new generation divided by the size of the whole population.

 o mutationRate
 protected float mutationRate
The mutation rate. In the default implementation, this is the probability that one bit of a newly created (merged) gene is flipped in mitosis.

Constructors

 o EvolutionParmImpl
 public EvolutionParmImpl(float d,
                          float m,
                          float i) throws BadParmException
Create myself containing the specified dieRate, mutationRate, inertia.

Throws: BadParmException
if one of these values is not between 0 and 1

Methods

 o check
 protected void check(float x) throws BadParmException
Throws: BadParmException
if the argument is not between 0 and 1
 o dieRate
 public float dieRate()
Returns:
dieRate
 o mutationRate
 public float mutationRate()
Returns:
mutationRate
 o inertia
 public float inertia()
Returns:
inertia

All Packages  Class Hierarchy  This Package  Previous  Next  Index