View source: R/find_n_similar.R
find_n_similar | R Documentation |
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.
find_n_similar(dist, POI_name, n = 10)
: A vector of IDs sorted by their similarity to the POI: pattern of interest
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.