Learn R Programming

TML (version 2.3.0)

pw.trop.dist: Constructs the dissimilarity matrix for a set of ultrametrics

Description

Constructs the dissimilarity matrix based on the tropical distance between points in a dataset

Usage

pw.trop.dist(D1, D2)

Value

matrix; dissimilarity matrix showing the tropical pairwise distance between each point

Arguments

D1

matrix of ultrametrics

D2

matrix of ultrametrics

Author

Ruriko Yoshida ryoshida@nps.edu

References

Weyenberg, G., Huggins, P., Schardl, C., Howe, D. K., & Yoshida, R. (2014). kdetrees: Nonparametric Estimation of Phylogenetic Tree Distributions. In Bioinformatics.

Yoshida, Ruriko, David Barnhill, Keiji Miura and Daniel Howe (2022). Tropical Density Estimation of Phylogenetic Trees.

https://github.com/grady/kdetrees/blob/master/R/dist.diss.R

Examples

Run this code
# \donttest{
T1<-Sim_Trees15
T2<-Sim_Trees25
D <- rbind(T1, T2[1,])
pw.trop.dist(D, D)
# }

Run the code above in your browser using DataLab