public class TaxaDistBuilder
Builder for TaxaDistribution. Deals with the
public static TaxaDistribution create(int maxTaxa, int taxaWithTag)
Create a TaxaDistribution with only a single taxa with a tag. Very memory efficient, but needs conversion add an additional taxon with a tag
maxTaxa - taxaWithTag - public static TaxaDistribution create(int maxTaxa)
Create an expandable TaxaDistribution with no initial values
maxTaxa - public static TaxaDistribution create(int maxTaxa, kotlin.Array[] taxaWithTags, kotlin.Array[] depthOfTags)
Create an fixed TaxaDistribution with set values
maxTaxa - public static TaxaDistribution create(kotlin.Array[] encodedTaxaDistribution)
Create an fixed TaxaDistribution with set values
encodedTaxaDistribution - byte array of encoded TaxaDistributionpublic static TaxaDistribution create(TaxaDistribution srcTaxaDist)
Copies a TaxaDistribution to an expandable TaxaDistribution. Can be used to convert a single TaxaDistribution to an expandable version
srcTaxaDist - public static TaxaDistribution combine(TaxaDistribution taxaDist1, TaxaDistribution taxaDist2)
Combines a TaxaDistribution to an expandable TaxaDistribution. Can be used to convert a single TaxaDistribution to an expandable version
taxaDist1 - public static TaxaDistribution create(int maxTaxa, kotlin.Array[] encodeTaxaDepths)
Create expandable TaxaDistribution from encoded taxa distribution. The int[] encoding use first three bytes for taxa index, and last byte for depth as unsigned byte. Depths greater than 256 just increase.
maxTaxa - encodeTaxaDepths - public static kotlin.Array[] getDepthMatrixForEncodedDepths(kotlin.Array[] input)