shd {causalDisco} | R Documentation |
Structural hamming distance between adjacency matrices
Description
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.
Usage
shd(est_amat, true_amat)
Arguments
est_amat |
Estimated adjacency matrix |
true_amat |
True adjacency matrix |
Details
Note that the function is symmetric in the two inputted adjacency matrices.
Value
A numeric (a non-negative integer).
[Package causalDisco version 0.9.1 Index]