This function finds the bandwidth for an ultrametric based on the tropical
distance of the nearest point. The function provides the bandwidth input to
trop.KDE and was originally used in the KDETrees package.
Usage
bw.nn(x, prop = 0.2, tol = 1e-06)
Value
a vector of bandwidths for each tree (row) in x
Arguments
x
matrix; dissimilarity matrix between points in a data set
prop
proportion of observations that defines neighborhood of a point
Weyenberg, G., Huggins, P., Schardl, C., Howe, D. K., & Yoshida,
R. (2014). kdetrees: Nonparametric Estimation of Phylogenetic Tree
Distributions. In Bioinformatics.