|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.ea.genome.BasicGenome
org.encog.ml.genetic.genome.IntegerArrayGenome
public class IntegerArrayGenome
A genome that is an array of discrete integer values.
| Constructor Summary | |
|---|---|
IntegerArrayGenome(int size)
Construct the genome. |
|
IntegerArrayGenome(IntegerArrayGenome other)
Construct the genome by copying another. |
|
| Method Summary | |
|---|---|
void |
copy(ArrayGenome source,
int sourceIndex,
int targetIndex)
Copy elements from another array genome into this one. |
void |
copy(Genome source)
Copy from the specified genome into this one. |
int[] |
getData()
|
int |
size()
|
void |
swap(int iswap1,
int iswap2)
Swap two elements in this genome. |
| Methods inherited from class org.encog.ml.ea.genome.BasicGenome |
|---|
getAdjustedScore, getBirthGeneration, getPopulation, getScore, getSpecies, setAdjustedScore, setBirthGeneration, setPopulation, setScore, setSpecies, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.encog.ml.ea.genome.Genome |
|---|
getAdjustedScore, getBirthGeneration, getPopulation, getScore, getSpecies, setAdjustedScore, setBirthGeneration, setPopulation, setScore, setSpecies |
| Constructor Detail |
|---|
public IntegerArrayGenome(int size)
size - The size of the genome.public IntegerArrayGenome(IntegerArrayGenome other)
other - The other genome.| Method Detail |
|---|
public int size()
size in interface Genome
public void copy(ArrayGenome source,
int sourceIndex,
int targetIndex)
copy in interface ArrayGenomesource - The source genome.sourceIndex - The source index.targetIndex - The target index.public int[] getData()
public void copy(Genome source)
copy in interface Genomesource - The source genome.
public void swap(int iswap1,
int iswap2)
swap in interface ArrayGenomeiswap1 - 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 | |||||||||