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.
-
dieRate
- The number of individuals to be killed in the process of
breeding a new generation divided by the size of the whole
population.
-
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.
-
mutationRate
- The mutation rate.
-
EvolutionParmImpl(float, float, float)
- Create myself containing the specified
dieRate
,
mutationRate
, inertia
.
-
check(float)
-
-
dieRate()
-
-
inertia()
-
-
mutationRate()
-
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.
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.
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.
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
check
protected void check(float x) throws BadParmException
- Throws: BadParmException
- if the argument is not between 0 and 1
dieRate
public float dieRate()
- Returns:
-
dieRate
mutationRate
public float mutationRate()
- Returns:
-
mutationRate
inertia
public float inertia()
- Returns:
-
inertia
All Packages Class Hierarchy This Package Previous Next Index