Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.ml.genetic.genome
Interface ArrayGenome

All Superinterfaces:
  Genome, MLMethod

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
`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

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All Rights Reserved.