Class DoubleChromosomeSpec

java.lang.Object
net.bmahe.genetics4j.core.spec.chromosome.DoubleChromosomeSpec
All Implemented Interfaces:
ChromosomeSpec
Direct Known Subclasses:
ImmutableDoubleChromosomeSpec

@Immutable public abstract class DoubleChromosomeSpec extends Object implements ChromosomeSpec
  • 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

      @Default public Distribution distribution()
    • check

      @Check protected void check()
    • of

      public static DoubleChromosomeSpec of(int size, double minValue, double maxValue)
      Construct a new immutable DoubleChromosomeSpec instance.
      Parameters:
      size - The value for the size attribute
      minValue - The value for the minValue attribute
      maxValue - The value for the maxValue attribute
      Returns:
      An immutable DoubleChromosomeSpec instance
    • of

      public static DoubleChromosomeSpec of(int size, double minValue, double maxValue, Distribution distribution)