View source: R/cluster_factory.R
get_edge_weights | R Documentation |
Calculate edge weights
get_edge_weights(overlap_lengths, cluster_sizes, edges)
overlap_lengths |
A named vector of cluster overlap lengths, obtained by calling |
cluster_sizes |
A vector of cluster sizes. |
edges |
A 2D array of source and target nodes, representing an edge list. Should be ordered consistently with the |
This value is calculated per edge by dividing the number of data points in the union of the two clusters by the number of data points in the intersection. Formally,
w(\{c_i, c_j\}) = \dfrac{|c_i \cap c_j|}{|c_i \cup c_j|} = \dfrac{|c_i \cap c_j|}{|c_i| + |c_j| - |c_i \cap c_j|}
A vector of real numbers representing the Jaccard index of each overlap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.