org.encog.ml.genetic.genome
Class IntegerArrayGenomeFactory

java.lang.Object
  extended by org.encog.ml.genetic.genome.IntegerArrayGenomeFactory
All Implemented Interfaces:
GenomeFactory

public class IntegerArrayGenomeFactory
extends Object
implements GenomeFactory

A factory to create integer genomes of a specific size.


Constructor Summary
IntegerArrayGenomeFactory(int theSize)
          Create the integer genome of a fixed size.
 
Method Summary
 Genome factor()
          
 Genome factor(Genome other)
          Create a clone of the other genome.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerArrayGenomeFactory

public IntegerArrayGenomeFactory(int theSize)
Create the integer genome of a fixed size.

Parameters:
theSize - The size to use.
Method Detail

factor

public Genome factor()

Specified by:
factor in interface GenomeFactory
Returns:
The newly created genome.

factor

public Genome factor(Genome other)
Create a clone of the other genome.

Specified by:
factor in interface GenomeFactory
Parameters:
other - The other genome.
Returns:
The newly created clone.


Copyright © 2014. All Rights Reserved.