DoubleGene
instead. This classes
uses the JScience library, which will be removed in the
next major version.@Deprecated public final class Float64Gene extends NumberGene<Float64,Float64Gene> implements GroupMultiplicative<Float64Gene>
Modifier and Type | Field and Description |
---|---|
static Function<Float64Gene,Float64> |
Allele
Deprecated.
Converter for accessing the value from a given number gene.
|
static Function<Float64Gene,Float64> |
Max
Deprecated.
Converter for accessing the allowed minimum from a given number gene.
|
static Function<Float64Gene,Float64> |
Min
Deprecated.
Converter for accessing the allowed minimum from a given number gene.
|
static Function<Float64Gene,Float64> |
Value
Deprecated.
Converter for accessing the allele from a given number gene.
|
_max, _min, _value
Modifier and Type | Method and Description |
---|---|
protected Float64 |
box(Number value)
Deprecated.
Boxes a given Java number into the required number object.
|
Float64Gene |
divide(Float64Gene gene)
Deprecated.
|
Float64Gene |
inverse()
Deprecated.
|
Float64Gene |
mean(Float64Gene that)
Deprecated.
Return the (usually arithmetic) mean value of
this and
that . |
Float64Gene |
newInstance()
Deprecated.
Create a new valid, random gene.
|
Float64Gene |
newInstance(double value)
Deprecated.
Create a new Float64Gene with the same limits and the given value.
|
Float64Gene |
newInstance(Float64 value)
Deprecated.
Create a new gene from the given
value . |
static Float64Gene |
valueOf(double min,
double max)
Deprecated.
Create a new random
Float64Gene . |
static Float64Gene |
valueOf(double value,
double min,
double max)
Deprecated.
Create a new random
Float64Gene with the given value and the
given range. |
static Float64Gene |
valueOf(Float64 min,
Float64 max)
Deprecated.
Create a new random
Float64Gene . |
static Float64Gene |
valueOf(Float64 value,
Float64 min,
Float64 max)
Deprecated.
Create a new random
Float64Gene with the given value and the
given range. |
compareTo, copy, doubleValue, equals, getAllele, getMax, getMin, getNumber, hashCode, isLargerThan, isValid, longValue, newInstance, opposite, plus, set, times, toText
byteValue, floatValue, intValue, isGreaterThan, isLessThan, minus, pow, shortValue, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
times
byteValue, floatValue, intValue, shortValue
public static final Function<Float64Gene,Float64> Allele
public static final Function<Float64Gene,Float64> Value
public static final Function<Float64Gene,Float64> Min
public static final Function<Float64Gene,Float64> Max
protected Float64 box(Number value)
NumberGene
box
in class NumberGene<Float64,Float64Gene>
value
- the Java number to box.public Float64Gene divide(Float64Gene gene)
public Float64Gene inverse()
inverse
in interface GroupMultiplicative<Float64Gene>
public Float64Gene mean(Float64Gene that)
Mean
this
and
that
. For NumberGene
s the mean is the
arithmetic mean.mean
in interface Mean<Float64Gene>
that
- the second value for calculating the mean.this
and that
.public Float64Gene newInstance()
newInstance
in interface Gene<Float64,Float64Gene>
newInstance
in interface Factory<Float64Gene>
public Float64Gene newInstance(double value)
value
- the value of the new NumberGene
.NumberGene
.public Float64Gene newInstance(Float64 value)
NumberGene
value
.newInstance
in interface BoundedGene<Float64,Float64Gene>
newInstance
in class NumberGene<Float64,Float64Gene>
value
- the value of the new gene.public static Float64Gene valueOf(double value, double min, double max)
Float64Gene
with the given value and the
given range. If the value
isn't within the interval [min, max),
no exception is thrown. In this case the method
NumberGene.isValid()
returns false
.value
- the value of the gene.min
- the minimal valid value of this gene (inclusively).max
- the maximal valid value of this gene (exclusively).value
.public static Float64Gene valueOf(Float64 value, Float64 min, Float64 max)
Float64Gene
with the given value and the
given range. If the value
isn't within the interval [min, max),
no exception is thrown. In this case the method
NumberGene.isValid()
returns false
.value
- the value of the gene.min
- the minimal valid value of this gene (inclusively).max
- the maximal valid value of this gene (exclusively).value
.NullPointerException
- if one of the arguments is null
.public static Float64Gene valueOf(double min, double max)
Float64Gene
. It is guaranteed that the value
of the Float64Gene
lies in the interval [min, max).min
- the minimal valid value of this gene (inclusively).max
- the maximal valid value of this gene (exclusively).public static Float64Gene valueOf(Float64 min, Float64 max)
Float64Gene
. It is guaranteed that the value
of the Float64Gene
lies in the interval [min, max).min
- the minimal valid value of this gene (inclusively).max
- the maximal valid value of this gene (exclusively).NullPointerException
- if one of the arguments is null
.© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)