integrate_edge_KDE {ontophylo} | R Documentation |
Checks the integral of normalized Markov KDE or normalized loess smoothing over edges.
integrate_edge_KDE(tree.discr, Edge.KDE.list)
tree.discr |
simmap or phylo object. A discretized tree using the 'discr_Simmap' function. |
Edge.KDE.list |
list. A list with the normalized KDEs or loess smoothing for each edge. |
A numeric value for the integral over all edges.
Sergei Tarasov
data("hym_kde", "hym_tree")
# Get reference tree.
tree_discr <- discr_Simmap(hym_tree, res = 200)
# Get non-normalized and normalized edge KDE data for mean rates.
Edge_KDE <- hym_kde$head
# Check integrals.
integrate_edge_KDE(tree_discr, Edge_KDE$Maps.mean.norm)
integrate_edge_KDE(tree_discr, Edge_KDE$Maps.mean.loess.norm)