View source: R/tree_distance.R
GeneralizedRF | R Documentation |
An internal function to calculate Generalized Robinson–Foulds distances from splits.
GeneralizedRF(
splits1,
splits2,
nTip,
PairScorer,
maximize,
reportMatching,
...
)
splits1 , splits2 |
Logical matrices where each row corresponds to a leaf,
either listed in the same order or bearing identical names (in any sequence),
and each column corresponds to a split, such that each leaf is identified as
a member of the ingroup ( |
nTip |
Integer specifying the number of leaves in each split. |
PairScorer |
function taking four arguments, |
reportMatching |
Logical specifying whether to return the clade matchings as an attribute of the score. |
... |
Additional parameters to |
Note that no checks will be made to confirm that splits1
and splits2
contain the same leaves in the same order.
This is the responsibility of the calling function.
A numeric value specifying the score of the tree pairs under the
specified pair scorer. If reportMatching = TRUE
, attribute also list:
matching
: which split in splits2
is optimally matched to each split in
split1
(NA
if not matched);
matchedSplits
: Textual representation of each match
matchedScores
: Scores for matched split.
pairScores
: Calculated scores for each possible matching of each split.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.