Class FloatChromosomeSpec
java.lang.Object
net.bmahe.genetics4j.core.spec.chromosome.FloatChromosomeSpec
- All Implemented Interfaces:
ChromosomeSpec
- Direct Known Subclasses:
ImmutableFloatChromosomeSpec
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheck()abstract floatmaxValue()abstract floatminValue()static FloatChromosomeSpecof(int size, float minValue, float maxValue) Construct a new immutableFloatChromosomeSpecinstance.static FloatChromosomeSpecof(int size, float minValue, float maxValue, Distribution distribution) abstract intsize()
-
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 immutableFloatChromosomeSpecinstance.- Parameters:
size- The value for thesizeattributeminValue- The value for theminValueattributemaxValue- The value for themaxValueattribute- Returns:
- An immutable FloatChromosomeSpec instance
-
of
public static FloatChromosomeSpec of(int size, float minValue, float maxValue, Distribution distribution)
-