SplitSharedInformation | R Documentation |
Calculate the phylogenetic information shared, or not shared, between two splits. See the accompanying vignette for definitions.
SplitSharedInformation(n, A1, A2 = A1)
SplitDifferentInformation(n, A1, A2 = A1)
TreesConsistentWithTwoSplits(n, A1, A2 = A1)
LnTreesConsistentWithTwoSplits(n, A1, A2 = A1)
Log2TreesConsistentWithTwoSplits(n, A1, A2 = A1)
Log2TreesConsistentWithTwoSplits(n, A1, A2 = A1)
n |
Integer specifying the number of leaves |
A1 , A2 |
Integers specifying the number of taxa in A1 and A2, once the splits have been arranged such that A1 fully overlaps with A2. |
Split S1 divides n leaves into two splits, A1 and B1. Split S2 divides the same leaves into the splits A2 and B2.
Splits must be named such that A1 fully overlaps with A2: that is to say, all taxa in A1 are also in A2, or vice versa. Thus, all taxa in the smaller of A1 and A2 also occur in the larger.
TreesConsistentWithTwoSplits()
returns the number of unrooted bifurcating
trees consistent with two splits.
SplitSharedInformation()
returns the phylogenetic information that two splits
have in common \insertCiteMeila2007TreeDist, in bits.
SplitDifferentInformation()
returns the amount of phylogenetic information
distinct to one of the two splits, in bits.
SplitDifferentInformation()
: Different information between two splits.
TreesConsistentWithTwoSplits()
: Number of trees consistent with two
splits.
LnTreesConsistentWithTwoSplits()
: Natural logarithm of
TreesConsistentWithTwoSplits()
.
Log2TreesConsistentWithTwoSplits()
: Base two logarithm of
TreesConsistentWithTwoSplits()
.
Log2TreesConsistentWithTwoSplits()
: Base 2 logarithm of
TreesConsistentWithTwoSplits()
.
Martin R. Smith (martin.smith@durham.ac.uk)
Other information functions:
SplitEntropy()
,
TreeInfo
# Eight leaves, labelled A to H.
# Split 1: ABCD|EFGH
# Split 2: ABC|DEFGH
# Let A1 = ABCD (four taxa), and A2 = ABC (three taxa).
# A1 and A2 overlap (both contain ABC).
TreesConsistentWithTwoSplits(n = 8, A1 = 4, A2 = 3)
SplitSharedInformation(n = 8, A1 = 4, A2 = 3)
SplitDifferentInformation(n = 8, A1 = 4, A2 = 3)
# If splits are identical, then their shared information is the same
# as the information of either split:
SplitSharedInformation(n = 8, A1 = 3, A2 = 3)
TreeTools::SplitInformation(3, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.