Description Usage Arguments Value Examples
Compute similarity based on trajectory
1 2 3 4 5 6 7 | compute_similarity(
processed_data,
node_color,
trajectories,
f_sim_map = NULL,
verbose = TRUE
)
|
processed_data |
Dataframe. Processed from original data. |
node_color |
Dataframe mapping node to cluster and corresponding color. |
trajectories |
List of trajectories computed from shortest paths. |
f_sim_map |
TDAmapper object |
verbose |
Boolean. Whether to print trajectory. |
List of two components: dataframe with various similarity measures and dataframe of the observations mapped to corresponding node and cluster.
1 2 3 4 | my_tda <- map_tda(scaled_lab_mat)
my_graph <- make_tda_graph(my_tda, processed_data, 'time')
my_trajs <- find_trajectories(processed_data, my_tda, my_graph)
compute_similarity(processed_data, my_graph$node_color, my_trajs, my_tda)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.