| dist_nvd | R Documentation | 
This function computes the matrix of pairwise distances between all the
elements of the two samples put together. The cardinality of the fist sample
is denoted by n_1 and that of the second one is denoted by n_2.
dist_nvd(
  x,
  y = NULL,
  representation = "adjacency",
  distance = "frobenius",
  matching_iterations = 0,
  target_matrix = NULL
)
x | 
 A   | 
y | 
 A   | 
representation | 
 A string specifying the desired type of representation,
among:   | 
distance | 
 A string specifying the chosen distance for calculating the
test statistic, among:   | 
matching_iterations | 
 An integer value specifying the maximum number of
runs when looking for the optimal permutation for graph matching. Defaults
to   | 
target_matrix | 
 A square numeric matrix of size   | 
A matrix of dimension (n_1+n_2) \times (n_1+n_2) containing the
distances between all the elements of the two samples put together.
gnp_params <- list(n = 24L, p = 1/3)
degree_params <- list(out_degree = rep(2, 24L), method = "configuration")
x <- nvd(sample_size = 10L, model = "gnp", !!!gnp_params)
y <- nvd(sample_size = 10L, model = "degree", !!!degree_params)
dist_nvd(x, y, "adjacency", "spectral")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.