| hd | R Documentation |
Compute the Hamming Distance between two graphs.
hd(cg1, cg2, normalized = FALSE)
cg1 |
A |
cg2 |
A |
normalized |
Logical; if |
An integer representing the Hamming Distance between the two graphs,
if normalized = FALSE, or a numeric between 0 and 1 if normalized = TRUE.
Other metrics:
aid(),
shd()
cg1 <- caugi(A %-->% B %-->% C, D %-->% C, class = "DAG")
cg2 <- caugi(A %-->% B %-->% C, D %---% C, class = "PDAG")
hd(cg1, cg2) # 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.