find_n_similar: find_n_similar: Find the most similar patterns to a pattern...

View source: R/find_n_similar.R

find_n_similarR Documentation

find_n_similar: Find the most similar patterns to a pattern of interest.

Description

This function is designed to work in combination with dtwarper. Dtwarper is intended to generate a distance matrix using dynamic time warping, which is then leveraged by find_n_similar() to find n IDs that produce the most similar patterns.

Usage

find_n_similar(dist, POI_name, n = 10)

Value

: A vector of IDs sorted by their similarity to the POI: pattern of interest

Examples

# dist generated with dtwarper is used to find IDs producing the 25 most similar patterns to that of the "interesting pattern".
IDs = find_n_similar(dist,interesting_pattern, n = 25)

baynec2/biolabr documentation built on Aug. 8, 2022, 12:02 a.m.