View source: R/graph_theory_functions.R
compute_str_ham_distance | R Documentation |
Compute the structural Hamming distance between the true CPDAG
cpdag
and the estimated CPDAG est_cpdag
.
The structural Hamming distance is defined as in the paper from
Tsamardinos I., Brown L.E., and Aliferis C.F.,
https://link.springer.com/article/10.1007/s10994-006-6889-7.
compute_str_ham_distance(cpdag, est_cpdag)
cpdag |
Square binary matrix. A matrix representing a CPDAG. |
est_cpdag |
Square binary matrix. The estimated CPDAG. |
Numeric — between 0 and 1. The structural Hamming
distance between a true CPDAG cpdag
and the
estimated CPDAG est_cpdag
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.