|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ArrayGenome
An array genome represents an array of "something", this allows array operators such as crossover and mutate to work on the genome.
| Method Summary | |
|---|---|
void |
copy(ArrayGenome source,
int sourceIndex,
int targetIndex)
Copy elements from another array genome into this one. |
void |
swap(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, getSpecies, setAdjustedScore, setBirthGeneration, setPopulation, setScore, setSpecies, size |
| Method Detail |
|---|
void copy(ArrayGenome source,
int sourceIndex,
int targetIndex)
source - The source genome.sourceIndex - The source index.targetIndex - The target index.
void swap(int iswap1,
int iswap2)
iswap1 - The first element index to swap.iswap2 - The second element index to swap.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||