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

View source: R/TreeBasedMethods.R

calculateTrajectoryDistancesR Documentation

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

Description

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

Usage

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 June 14, 2024, 5:27 p.m.