Documentation of 'org.jgap.impl.DefaultMutationRateCalculator' Java class
DefaultMutationRateCalculator
org.jgap.impl

Class DefaultMutationRateCalculator

    • Method Detail

      • calculateCurrentRate

        public int calculateCurrentRate()
        Calculates the mutation rate.
        Returns:
        calculated divisor of mutation rate probability (dividend is 1)
        Since:
        1.1 (same functionality as earlier, but not encapsulated)
      • toBePermutated

        public boolean toBePermutated(IChromosome a_chrom,
                                      int a_geneIndex)
        Determines whether mutation is to be carried out. In this case the rate is the size of the chromosome. There is therefore a probability of 1/totalgenes that a particular gene mutates.
        Parameters:
        a_chrom - ignored
        a_geneIndex - ignored
        Returns:
        true if gene should be mutated
        Since:
        2.0

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.