JavaScript is disabled on your browser.
Skip navigation links
org.biojavax.ga.util

Class GATools



  • public final class GATools
    extends Object 

    Utility methods for the GA library

    Since:
    1.5
    Version:
    1.0
    Author:
    Mark Schreiber
    • Constructor Detail

    • Method Detail

      • getBinaryAlphabet

        public static FiniteAlphabet getBinaryAlphabet()
        Gets a Reference to the FlyWeight GA_Binary Alphabet. It contains the Symbols one and zero.
        Returns:
        the finite, flyweight Binary Alphabet
      • standardMutationDistribution

        public static OrderNDistribution standardMutationDistribution(FiniteAlphabet a)
         throws IllegalAlphabetException 
        Makes a mutation Distribution where the probability of a Symbol being mutated to itself is zero and the probability of it being changed to any other Symbol in the Alphabet a is 1.0 / (a.size() - 1.0)
        Parameters:
        a - the FiniteAlphabet which mutations are sampled from.
        Returns:
        A Distribution suitable for use in a MutationFunction
        Throws:
        IllegalAlphabetException - if the Distribution cannot be made over the FiniteAlphabet
Skip navigation links

Copyright © 2020 BioJava. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /