calculateTrajectoryDistances: Calculate distance matrix between all pairs of ponts based on...

Description Usage Arguments Value

View source: R/TreeBasedMethods.R

Description

Calculate distance matrix between all pairs of ponts based on their projection onto the tree

Usage

1
calculateTrajectoryDistances(adjMat, edgeAssoc, edgePos, latentPnts = NULL)

Arguments

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

Value

non-negative symmetric matrix in which [i,j] is the tree-based distance between points i, j.


YosefLab/VISION documentation built on Sept. 14, 2021, 5:27 p.m.