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