Package io.jenetics

Class AbstractAlterer<G extends Gene<?,​G>,​C extends Comparable<? super C>>

    • Field Detail

      • _probability

        protected final double _probability
        The altering probability.
    • Constructor Detail

      • AbstractAlterer

        protected AbstractAlterer​(double probability)
        Constructs an alterer with a given recombination probability.
        probability - The recombination probability.
        IllegalArgumentException - if the probability is not in the valid range of [0, 1].
    • Method Detail

      • probability

        public double probability()
        Return the recombination/alter probability for this alterer.
        The recombination probability.