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 |
|---|---|
boolean |
equals(Object obj) |
double |
getProbability()
Return the recombination/alter probability for this alterer.
|
int |
hashCode() |
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-2017 Franz Wilhelmstötter (2017-04-28 16:50)