edge_count_global_variables | R Documentation |
Transform distance matrix in edge properties of minimal spanning tree
edge_count_global_variables(d, n1, k = 1L)
d |
A matrix of dimension |
n1 |
An integer giving the size of the first sample. |
k |
An integer specifying the density of the minimal spanning tree to generate. |
A list of edge properties of the minimal spanning tree.
n1 <- 30L
n2 <- 10L
gnp_params <- list(n = 24L, p = 1/3)
degree_params <- list(out_degree = rep(2, 24L), method = "configuration")
x <- nvd(sample_size = n1, model = "gnp", !!!gnp_params)
y <- nvd(sample_size = n2, model = "degree", !!!degree_params)
d <- dist_nvd(x, y, representation = "laplacian", distance = "frobenius")
e <- edge_count_global_variables(d, n1, k = 5L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.