Class FloatChromosomeSpec
java.lang.Object
net.bmahe.genetics4j.core.spec.chromosome.FloatChromosomeSpec
- All Implemented Interfaces:
ChromosomeSpec
- Direct Known Subclasses:
ImmutableFloatChromosomeSpec
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
check()
abstract float
maxValue()
abstract float
minValue()
static FloatChromosomeSpec
of
(int size, float minValue, float maxValue) Construct a new immutableFloatChromosomeSpec
instance.static FloatChromosomeSpec
of
(int size, float minValue, float maxValue, Distribution distribution) abstract int
size()
-
Constructor Details
-
FloatChromosomeSpec
public FloatChromosomeSpec()
-
-
Method Details
-
size
@Parameter public abstract int size() -
minValue
@Parameter public abstract float minValue() -
maxValue
@Parameter public abstract float maxValue() -
distribution
-
check
@Check protected void check() -
of
Construct a new immutableFloatChromosomeSpec
instance.- Parameters:
size
- The value for thesize
attributeminValue
- The value for theminValue
attributemaxValue
- The value for themaxValue
attribute- Returns:
- An immutable FloatChromosomeSpec instance
-
of
public static FloatChromosomeSpec of(int size, float minValue, float maxValue, Distribution distribution)
-