public class Float64Chromosome extends NumberChromosome<Float64,Float64Gene> implements XMLSerializable
| Modifier and Type | Field and Description |
|---|---|
static Function<Chromosome<Float64Gene>,Float64Gene> |
Gene
|
static Function<AbstractChromosome<Float64Gene>,ISeq<Float64Gene>> |
Genes
Return a
Function which returns the gene array from this
Chromosome. |
_max, _min_genes, _valid| Modifier | Constructor and Description |
|---|---|
|
Float64Chromosome(double min,
double max)
Create a new random chromosome of length one.
|
|
Float64Chromosome(double min,
double max,
int length)
Create a new chromosome
|
|
Float64Chromosome(Float64 min,
Float64 max)
Create a new random chromosome of length one.
|
|
Float64Chromosome(Float64 min,
Float64 max,
int length)
Create a new random DoubleChromosome.
|
|
Float64Chromosome(Float64Gene... genes)
Create a new chromosome from the given
genes. |
protected |
Float64Chromosome(ISeq<Float64Gene> genes) |
| Modifier and Type | Method and Description |
|---|---|
Factory<Float64Chromosome> |
asFactory()
Deprecated.
No longer needed after adding new factory methods to the
Array class. |
boolean |
equals(Object obj) |
static Function<Chromosome<Float64Gene>,Float64Gene> |
Gene(int index)
|
int |
hashCode() |
Float64Chromosome |
newInstance()
Create a new, random chromosome.
|
Float64Chromosome |
newInstance(ISeq<Float64Gene> genes)
A factory method which creates a new
Chromosome of specific type
and the given genes. |
byteValue, byteValue, doubleValue, doubleValue, floatValue, floatValue, getMax, getMin, intValue, intValue, longValue, longValue, shortValue, shortValuepublic static final Function<AbstractChromosome<Float64Gene>,ISeq<Float64Gene>> Genes
Function which returns the gene array from this
Chromosome.public static final Function<Chromosome<Float64Gene>,Float64Gene> Gene
protected Float64Chromosome(ISeq<Float64Gene> genes)
public Float64Chromosome(Float64Gene... genes)
genes.genes - the genes this chromosome consists.IllegalArgumentException - if the number of genes is smaller than
one.NullPointerException - if the genes are null.public Float64Chromosome(Float64 min, Float64 max, int length)
min - the min value of the Float64Genes (inclusively).max - the max value of the Float64Genes (exclusively).length - the length of the chromosome.public Float64Chromosome(double min, double max)
min - the minimal value of this chromosome (inclusively).max - the maximal value of this chromosome (exclusively).public Float64Chromosome(Float64 min, Float64 max)
min - the minimal value of this chromosome (inclusively).max - the maximal value of this chromosome (exclusively).NullPointerException - if min or max is
null.public Float64Chromosome(double min, double max, int length)
min - the minimal value of this chromosome.max - the maximal value of this chromosome.length - the length of the new chromosome.IllegalArgumentException - if the length is smaller than
one.public Float64Chromosome newInstance(ISeq<Float64Gene> genes)
ChromosomeChromosome of specific type
and the given genes.newInstance in interface Chromosome<Float64Gene>genes - the genes of the new chromosome. The given genes array is
not copied.Chromosome of the same type with the given genes.@Deprecated public Factory<Float64Chromosome> asFactory()
Array class.public Float64Chromosome newInstance()
newInstance in interface Factory<Chromosome<Float64Gene>>public int hashCode()
hashCode in class NumberChromosome<Float64,Float64Gene>public boolean equals(Object obj)
equals in class NumberChromosome<Float64,Float64Gene>public static final Function<Chromosome<Float64Gene>,Float64Gene> Gene(int index)
© 2007-2013 Franz Wilhelmstötter (2013-12-18 20:17)