View source: R/TreeBasedMethods.R
calculateTrajectoryDistances | R Documentation |
Calculate distance matrix between all pairs of ponts based on their projection onto the tree
calculateTrajectoryDistances(adjMat, edgeAssoc, edgePos, latentPnts = NULL)
adjMat |
(K x K logical) adjacency matrix of the milestones |
edgeAssoc |
(2 x N) for each point, the edge it is projected to (represented as (V1,V2), where V1<V2) |
edgePos |
(length N, numeric) relative postion on the edge for each point, in range [0,1] |
latentPnts |
(D x K numeric) the spatial locations of the milestones |
non-negative symmetric matrix in which [i,j] is the tree-based distance between points i, j.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.