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