DoubleChromosome
instead. This classes
uses the JScience library, which will be removed in the
next major version.@Deprecated public class Float64Chromosome extends NumberChromosome<Float64,Float64Gene> implements XMLSerializable
Modifier and Type | Field and Description |
---|---|
static Function<Chromosome<Float64Gene>,Float64Gene> |
Gene
Deprecated.
|
static Function<AbstractChromosome<Float64Gene>,ISeq<Float64Gene>> |
Genes
Deprecated.
Return a
Function which returns the gene array from this
Chromosome . |
_max, _min
_genes, _valid
Modifier | Constructor and Description |
---|---|
|
Float64Chromosome(double min,
double max)
Deprecated.
Create a new random chromosome of length one.
|
|
Float64Chromosome(double min,
double max,
int length)
Deprecated.
Create a new chromosome
|
|
Float64Chromosome(Float64 min,
Float64 max)
Deprecated.
Create a new random chromosome of length one.
|
|
Float64Chromosome(Float64 min,
Float64 max,
int length)
Deprecated.
Create a new random DoubleChromosome.
|
|
Float64Chromosome(Float64Gene... genes)
Deprecated.
Create a new chromosome from the given
genes . |
protected |
Float64Chromosome(ISeq<Float64Gene> genes)
Deprecated.
|
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)
Deprecated.
|
static Function<Chromosome<Float64Gene>,Float64Gene> |
Gene(int index)
Deprecated.
|
int |
hashCode()
Deprecated.
|
Float64Chromosome |
newInstance()
Deprecated.
Create a new, random chromosome.
|
Float64Chromosome |
newInstance(ISeq<Float64Gene> genes)
Deprecated.
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, shortValue
getGene, getGene, indexOf, isValid, iterator, length, toSeq, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getGene, getGene, length, toSeq
isValid
public 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 Float64Gene
s (inclusively).max
- the max value of the Float64Gene
s (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)
Chromosome
Chromosome
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 Function<Chromosome<Float64Gene>,Float64Gene> Gene(int index)
© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)