Finds the mean size of ladders in the tree
avgLadder(tree, normalise = FALSE)
a tree of class phylo
or phylo4
. The tree should be binary and rooted; if not it will be coerced into a binary rooted tree using multi2di, if possible.
option to normalise the result, default is FALSE
The mean ladder size
## Find the average ladder size in a random tree with 20 tips:
tree <- rtree(20)
plot(tree)
avgLadder(tree)
#> [1] 2
# and the normalised average ladder size:
avgLadder(tree, normalise=TRUE)
#> [1] 0.1111111