View source: R/SplitFunctions.R
SplitMatchProbability | R Documentation |
(Ln
)SplitMatchProbability()
calculates the probability that two random
splits of the sizes provided will be at least as similar as the two
specified.
SplitMatchProbability(split1, split2)
LnSplitMatchProbability(split1, split2)
split1 , split2 |
Logical vectors listing terminals in same order, such that
each terminal is identified as a member of the ingroup ( |
SplitMatchProbability()
returns a numeric giving the proportion
of permissible non-trivial splits that divide the terminals into bipartitions
of the sizes given, that match as well as split1
and split2
do.
LnSplitMatchProbability()
returns the natural logarithm of the
probability.
Martin R. Smith (martin.smith@durham.ac.uk)
Other split information functions:
CharacterInformation()
,
SplitInformation()
,
TreesMatchingSplit()
,
UnrootedTreesMatchingSplit()
split1 <- as.Splits(c(rep(TRUE, 4), rep(FALSE, 4)))
split2 <- as.Splits(c(rep(TRUE, 3), rep(FALSE, 5)))
SplitMatchProbability(split1, split2)
LnSplitMatchProbability(split1, split2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.