org.encog.ml.genetic.genome
public class IntegerArrayGenome extends BasicGenome implements ArrayGenome
| Constructor and Description |
|---|
IntegerArrayGenome(int size)
Construct the genome.
|
IntegerArrayGenome(IntegerArrayGenome other)
Construct the genome by copying another.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAdjustedScore, getBirthGeneration, getPopulation, getScore, getSpecies, setAdjustedScore, setBirthGeneration, setPopulation, setScore, setSpecies, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdjustedScore, getBirthGeneration, getPopulation, getScore, getSpecies, setAdjustedScore, setBirthGeneration, setPopulation, setScore, setSpeciespublic IntegerArrayGenome(int size)
size - The size of the genome.public IntegerArrayGenome(IntegerArrayGenome other)
other - The other genome.public int size()
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)
public void swap(int iswap1,
int iswap2)
swap in interface ArrayGenomeiswap1 - The first element index to swap.iswap2 - The second element index to swap.Copyright © 2014. All Rights Reserved.