weightMultiDistUnlab: All weighted pairwise distances for a list of trees

Description Usage Arguments Value Examples

Description

All weighted pairwise distances for a list of trees

Usage

1
2
weightMultiDistUnlab(trees, listoflabels = NA, weights = function(x)
  ifelse(is.numeric(x), 1/(1 + log(x)), 1e-08))

Arguments

trees

A list of trees

listoflabels

Alternatively, a list of labels. If listoflabels is NA (the default), this function first computes the labels for the set of trees. If listoflabels is not NA, the labels are compared directly and the trees are ignored.

weights

A function in the form ifelse(is.numeric(x),VALUE1,VALUE2) where VALUE1 is the weight applied to labels that have not been hashed (fewer than 12 digits) and VALUE2 is the value if hashed. Default is (1/(1+log(x)) and 1e-8

Value

An object of class 'dist' containing tree-tree distances

Examples

1
dd=weightmultiDistUnlab(rmtree(10,12))

carolinecolijn/treetop documentation built on May 13, 2019, 12:50 p.m.