hammingDist: Hamming Distance

Description Usage Arguments Details Value Author(s) See Also

Description

Computes the Hamming distance between two graph objects.

Usage

1
hammingDist(G1, G2, allMistakesOne = TRUE)

Arguments

G1

p x p adjacency matrix of the first graph.

G2

p x p adjacency matrix of the second graph.

allMistakesOne

boolean variable (TRUE/FALSE) that indicates whether all mistakes should be counted as one. E.g., if it is set to FALSE the Hamming distance between X -> Y and X <- Y is two and one if it set to TRUE.

Details

The Hamming distance between two graphs counts the number of edges, in which the graphs do not coincide. allMistakesOne determines whether a reversed edge counts as two or as one mistake. The Hamming distance is symmetric, that is hammingDist(G1,G2) = hammingDist(G2,G1).

Value

The method outputs the computed Hamming distance.

Author(s)

Jonas Peters <jonas.peters@tuebingen.mpg.de>

See Also

structIntervDist



Search within the SID package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.