org.encog.ml.genetic.genome
Class DoubleArrayGenomeFactory

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

public class DoubleArrayGenomeFactory
extends Object
implements GenomeFactory

A factory that creates DoubleArrayGenome objects of a specific size.


Constructor Summary
DoubleArrayGenomeFactory(int theSize)
          Construct the genome factory.
 
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

DoubleArrayGenomeFactory

public DoubleArrayGenomeFactory(int theSize)
Construct the genome factory.

Parameters:
theSize - The size to create genomes of.
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.