org.encog.ml.genetic.genome
Interface ArrayGenome
-
- All Known Implementing Classes:
- DoubleArrayGenome, IntegerArrayGenome, MLMethodGenome
public interface ArrayGenome extends Genome
An array genome represents an array of "something", this allows array operators such as crossover and mutate to work on the genome.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidcopy(ArrayGenome source, int sourceIndex, int targetIndex)Copy elements from another array genome into this one.voidswap(int iswap1, int iswap2)Swap two elements in this genome.-
Methods inherited from interface org.encog.ml.ea.genome.Genome
copy, getAdjustedScore, getBirthGeneration, getPopulation, getScore, getSource, getSpecies, setAdjustedScore, setBirthGeneration, setPopulation, setScore, setSource, setSpecies, size
-
-
-
-
Method Detail
-
copy
void copy(ArrayGenome source, int sourceIndex, int targetIndex)
Copy elements from another array genome into this one.- Parameters:
source- The source genome.sourceIndex- The source index.targetIndex- The target index.
-
swap
void swap(int iswap1, int iswap2)Swap two elements in this genome.- Parameters:
iswap1- The first element index to swap.iswap2- The second element index to swap.
-
-
DMelt 3.0 © DataMelt by jWork.ORG