public abstract class AbstractAlterer<G extends Gene<?,G>> extends Object implements Alterer<G>
Modifier and Type | Field and Description |
---|---|
protected double |
_probability
The altering probability.
|
static double |
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() |
static <G extends Gene<?,G>> |
Null()
Return an alterer which does nothing.
|
public static final double DEFAULT_ALTER_PROBABILITY
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 static <G extends Gene<?,G>> Alterer<G> Null()
public double getProbability()
© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)