edge_count_global_variables {nevada} | R Documentation |
Transform distance matrix in edge properties of minimal spanning tree
Description
Transform distance matrix in edge properties of minimal spanning tree
Usage
edge_count_global_variables(d, n1, k = 1L)
Arguments
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. |
Value
A list of edge properties of the minimal spanning tree.
Examples
n1 <- 30L
n2 <- 10L
gnp_params <- list(p = 1/3)
k_regular_params <- list(k = 8L)
x <- nvd(model = "gnp", n = n1, model_params = gnp_params)
y <- nvd(model = "k_regular", n = n2, model_params = k_regular_params)
d <- dist_nvd(x, y, representation = "laplacian", distance = "frobenius")
e <- edge_count_global_variables(d, n1, k = 5L)
[Package nevada version 0.2.0 Index]