sim_length: Compute similarity based on length to assign each subject to...

Description Usage Arguments Value Examples

View source: R/math-funcs.R

Description

Compute similarity based on length to assign each subject to most similar trajectory

Usage

1
sim_length(x, y)

Arguments

x

Numeric vector of node numbers indicating an individual's trajectory

y

Numeric vector of node numbers indicating a general trajectory

Value

A scalar as measure of similarity

Examples

1
sim_length(c(1,2), c(1,3,4))

trang1618/tdapseudotime documentation built on Feb. 9, 2021, 6:14 p.m.