org.apache.commons.math3.genetics
Class DummyRandomKey

java.lang.Object
  extended by org.apache.commons.math3.genetics.Chromosome
      extended by org.apache.commons.math3.genetics.AbstractListChromosome<Double>
          extended by org.apache.commons.math3.genetics.RandomKey<String>
              extended by org.apache.commons.math3.genetics.DummyRandomKey
All Implemented Interfaces:
Comparable<Chromosome>, Fitness, PermutationChromosome<String>

public class DummyRandomKey
extends RandomKey<String>

Implementation of RandomKey for testing purposes


Constructor Summary
DummyRandomKey(Double[] representation)
           
DummyRandomKey(List<Double> representation)
           
 
Method Summary
 double fitness()
           
 AbstractListChromosome<Double> newFixedLengthChromosome(List<Double> chromosomeRepresentation)
           
 
Methods inherited from class org.apache.commons.math3.genetics.RandomKey
checkValidity, comparatorPermutation, decode, identityPermutation, inducedPermutation, isSame, randomPermutation, toString
 
Methods inherited from class org.apache.commons.math3.genetics.AbstractListChromosome
getLength, getRepresentation
 
Methods inherited from class org.apache.commons.math3.genetics.Chromosome
compareTo, findSameChromosome, getFitness, searchForFitnessUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyRandomKey

public DummyRandomKey(List<Double> representation)

DummyRandomKey

public DummyRandomKey(Double[] representation)
Method Detail

newFixedLengthChromosome

public AbstractListChromosome<Double> newFixedLengthChromosome(List<Double> chromosomeRepresentation)
Specified by:
newFixedLengthChromosome in class AbstractListChromosome<Double>

fitness

public double fitness()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.