public abstract class AbstractAlterer<G extends Gene<?,G>,C extends Comparable<? super C>> extends Object implements Alterer<G,C>
Modifier and Type | Field and Description |
---|---|
protected double |
_probability
The altering probability.
|
DEFAULT_ALTER_PROBABILITY
Modifier | Constructor and Description |
---|---|
protected |
AbstractAlterer(double probability)
Constructs an alterer with a given recombination probability.
|
Modifier and Type | Method and Description |
---|---|
double |
getProbability()
Return the recombination/alter probability for this alterer.
|
protected final double _probability
protected AbstractAlterer(double probability)
probability
- The recombination probability.IllegalArgumentException
- if the probability
is not in the
valid range of [0, 1]
.public double getProbability()
© 2007-2019 Franz Wilhelmstötter (2019-06-23 15:39)