shd | R Documentation |
Computes the structural hamming distance between two adjacency matrices. This implementation
is a modification of the shd
function from the pcalg package, but here we
avoid working on the heavy graphNEL
objects for representing graphs that are used in the
pcalg package.
shd(est_amat, true_amat)
est_amat |
Estimated adjacency matrix |
true_amat |
True adjacency matrix |
Note that the function is symmetric in the two inputted adjacency matrices.
A numeric (a non-negative integer).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.