public interface NumericChromosome<N extends Number & Comparable<? super N>,G extends NumericGene<N,G>> extends Chromosome<G>
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Return the byte value of this
NumericChromosome at the
index 0. |
byte |
byteValue(int index)
Return the byte value of this
NumericChromosome at the given
index . |
double |
doubleValue()
Return the double value of this
NumericChromosome at the
index 0. |
double |
doubleValue(int index)
Return the double value of this
NumericChromosome at the given
index . |
float |
floatValue()
Return the float value of this
NumericChromosome at the
index 0. |
float |
floatValue(int index)
Return the float value of this
NumericChromosome at the given
index . |
int |
intValue()
Return the int value of this
NumericChromosome at the
index 0. |
int |
intValue(int index)
Return the int value of this
NumericChromosome at the given
index . |
long |
longValue()
Return the long value of this
NumericChromosome at the
index 0. |
long |
longValue(int index)
Return the long value of this
NumericChromosome at the given
index . |
short |
shortValue()
Return the short value of this
NumericChromosome at the
index 0. |
short |
shortValue(int index)
Return the short value of this
NumericChromosome at the given
index . |
getGene, getGene, length, newInstance, toSeq
isValid
newInstance
byte byteValue(int index)
NumericChromosome
at the given
index
.index
- the index of the NumericGene
.Gene
with the given index
.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= length()).byte byteValue()
NumericChromosome
at the
index
0.Gene
with index
0.short shortValue(int index)
NumericChromosome
at the given
index
.index
- the index of the NumericGene
.Gene
with the given index
.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= length()).short shortValue()
NumericChromosome
at the
index
0.Gene
with index
0.int intValue(int index)
NumericChromosome
at the given
index
.index
- the index of the NumericGene
.Gene
with the given index
.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= length()).int intValue()
NumericChromosome
at the
index
0.Gene
with index
0.long longValue(int index)
NumericChromosome
at the given
index
.index
- the index of the NumericGene
.Gene
with the given index
.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= length()).long longValue()
NumericChromosome
at the
index
0.Gene
with index
0.float floatValue(int index)
NumericChromosome
at the given
index
.index
- the index of the NumericGene
.Gene
with the given index
.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= length()).float floatValue()
NumericChromosome
at the
index
0.Gene
with index
0.double doubleValue(int index)
NumericChromosome
at the given
index
.index
- the index of the NumericGene
.Gene
with the given index
.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= length()).double doubleValue()
NumericChromosome
at the
index
0.Gene
with index
0.© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)