public class EvolveInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
crossoverPercent
Fraction related to a crossover, in the range 0 to 1.
|
java.util.ArrayList<java.lang.String> |
evolveTypes
Evolution types, mutate or crossover, for example.
|
java.lang.String |
geneType
The gene type.
|
float |
mutatePercent
Fraction percentage related to a mutation, in the range 0 to 1.
|
Constructor and Description |
---|
EvolveInfo()
Create a new instance of EvolveInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
copyEvolveTypes(java.util.HashMap heuristicOptions)
Copy any evolve type info from the heuristic options to this class's settings.
|
boolean |
isBagOfWords()
Return true if the gene type is a bag-of-words or related type.
|
boolean |
isSimpleType()
Return true if the gene type is a simple type.
|
boolean |
useFractions()
If true use the specified fractions to evolve with.
|
public java.lang.String geneType
public java.util.ArrayList<java.lang.String> evolveTypes
public float mutatePercent
public float crossoverPercent
public boolean isSimpleType()
public boolean isBagOfWords()
public boolean useFractions()
public void copyEvolveTypes(java.util.HashMap heuristicOptions)
heuristicOptions
- list of options as key-value pairs.