Class SearcherUtils

java.lang.Object
pal.treesearch.SearcherUtils

public class SearcherUtils extends Object
  • Constructor Details

    • SearcherUtils

      public SearcherUtils()
  • Method Details

    • 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 String[][] split(String[] leafNames, MersenneTwisterFast r)