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(p = 1/3)
k_regular_params <- list(k = 8L)
x <- nvd(model = "gnp", n = 10L, model_params = gnp_params)
y <- nvd(model = "k_regular", n = 10L, model_params = k_regular_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.