Class SearcherUtils


  • public class SearcherUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SearcherUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int createMatchups​(int numberOfSites, int numberOfStates, int[] sitePatternMatchup, int[] patternStateMatchup, int[] sequence)
      Fill in matchup arrays
      static java.lang.String[][] split​(java.lang.String[] leafNames, MersenneTwisterFast r)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SearcherUtils

        public SearcherUtils()
    • Method Detail

      • createMatchups

        public static final int createMatchups​(int numberOfSites,
                                               int numberOfStates,
                                               int[] sitePatternMatchup,
                                               int[] patternStateMatchup,
                                               int[] sequence)
        Fill in matchup arrays
        Parameters:
        numberOfSites - The number of sites
        numberOfStates - The number of states
        sitePatternMatchup - Should be of length numberOfSites
        patternStateMatchup - Should be of length numberOfStates+1
        sequence - the sequence
        Returns:
        the number of patterns
      • split

        public static final java.lang.String[][] split​(java.lang.String[] leafNames,
                                                       MersenneTwisterFast r)