Package pal.treesearch
Class SearcherUtils
- java.lang.Object
-
- pal.treesearch.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 intcreateMatchups(int numberOfSites, int numberOfStates, int[] sitePatternMatchup, int[] patternStateMatchup, int[] sequence)Fill in matchup arraysstatic java.lang.String[][]split(java.lang.String[] leafNames, MersenneTwisterFast r)
-
-
-
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 sitesnumberOfStates- The number of statessitePatternMatchup- Should be of length numberOfSitespatternStateMatchup- Should be of length numberOfStates+1sequence- the sequence- Returns:
- the number of patterns
-
split
public static final java.lang.String[][] split(java.lang.String[] leafNames, MersenneTwisterFast r)
-
-