public class DoubleChromosome extends AbstractChromosome<G> implements NumericChromosome<Double,DoubleGene>, Serializable
_genes, _valid| Modifier | Constructor and Description | 
|---|---|
|   | DoubleChromosome(Double min,
                Double max)Create a new random  DoubleChromosomeof length one. | 
|   | DoubleChromosome(Double min,
                Double max,
                int length)Create a new random  DoubleChromosome. | 
| protected  | DoubleChromosome(ISeq<DoubleGene> genes) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| A | getMax()Return the maximum value of this  BoundedChromosome. | 
| A | getMin()Return the minimum value of this  BoundedChromosome. | 
| int | hashCode() | 
| DoubleChromosome | newInstance()Create a new instance of type T. | 
| DoubleChromosome | newInstance(ISeq<DoubleGene> genes)A factory method which creates a new  Chromosomeof specific type
 and the givengenes. | 
| static DoubleChromosome | of(double min,
  double max)Create a new random  DoubleChromosomeof length one. | 
| static DoubleChromosome | of(double min,
  double max,
  int length)Create a new random  DoubleChromosome. | 
| static DoubleChromosome | of(DoubleGene... genes)Create a new  DoubleChromosomewith the given genes. | 
| double[] | toArray()Returns an double array containing all of the elements in this chromosome
 in proper sequence. | 
| double[] | toArray(double[] array)Returns an double array containing all of the elements in this chromosome
 in proper sequence. | 
getGene, isValid, iterator, length, toSeq, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbyteValue, byteValue, doubleValue, doubleValue, floatValue, floatValue, intValue, intValue, longValue, longValue, shortValue, shortValuegetMax, getMingetGene, getGene, length, toSeqisValidforEach, iterator, spliteratorprotected DoubleChromosome(ISeq<DoubleGene> genes)
public DoubleChromosome(Double min, Double max, int length)
DoubleChromosome.min - the min value of the DoubleGenes (inclusively).max - the max value of the DoubleGenes (exclusively).length - the length of the chromosome.NullPointerException - if one of the arguments is null.public DoubleChromosome(Double min, Double max)
DoubleChromosome of length one.min - the minimal value of this chromosome (inclusively).max - the maximal value of this chromosome (exclusively).NullPointerException - if one of the arguments is null.public double[] toArray(double[] array)
array - the array into which the elements of this chromosomes are to
        be stored, if it is big enough; otherwise, a new array is
        allocated for this purpose.NullPointerException - if the given array is nullpublic double[] toArray()
public static DoubleChromosome of(DoubleGene... genes)
DoubleChromosome with the given genes.genes - the genes of the chromosome.IllegalArgumentException - if the length of the genes array is
         empty.public static DoubleChromosome of(double min, double max, int length)
DoubleChromosome.min - the min value of the DoubleGenes (inclusively).max - the max value of the DoubleGenes (exclusively).length - the length of the chromosome.DoubleChromosome with the given parameterpublic static DoubleChromosome of(double min, double max)
DoubleChromosome of length one.min - the minimal value of this chromosome (inclusively).max - the maximal value of this chromosome (exclusively).DoubleChromosome with the given parameterpublic DoubleChromosome newInstance(ISeq<DoubleGene> genes)
ChromosomeChromosome of specific type
 and the given genes.newInstance in interface Chromosome<DoubleGene>genes - the genes of the new chromosome. The given genes array is
         not copied.Chromosome of the same type with the given genes.public DoubleChromosome newInstance()
FactorynewInstance in interface Factory<Chromosome<DoubleGene>>public int hashCode()
public A getMin()
BoundedChromosomeBoundedChromosome.getMin in interface BoundedChromosome<A extends Comparable<? super A>,G extends org.jenetics.AbstractBoundedGene<A,G>>BoundedChromosome.public A getMax()
BoundedChromosomeBoundedChromosome.getMax in interface BoundedChromosome<A extends Comparable<? super A>,G extends org.jenetics.AbstractBoundedGene<A,G>>BoundedChromosome.© 2007-2014 Franz Wilhelmstötter (2014-12-28 10:45)