tropical.KDE | R Documentation |
This function calculates a non-parametric density estimate of a tree over the space of phylogenetic trees on m leaves. It mimics classical kernel density estimation by using a Gaussian kernel in conjunction with tropical distance.
tropical.KDE(D, n, sigma, h = 2)
D |
matrix of phylogenetic tree observations as ultrametrics |
n |
number of leaves for each tree |
sigma |
bandwidth parameter based on tropical distance |
h |
height of the tree |
list containing center point and radius of minimum enclosing ball of P
Ruriko Yoshida ryoshida@nps.edu
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.
T1<-Sim_Trees15
T2<-Sim_Trees25
D <- rbind(T1, T2[1,])
T <- dim(D)[1]
X <- 1:T
M <- pw.trop.dist(D, D)
sigma <- bw.nn(M)
P_5 <- tropical.KDE(D, n, sigma, h = 2)
Q5 <- P_5[T]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.