partitionDist {genMCMCDiag} | R Documentation |
Function to return the 'Partition' distance between two objects. Used for Bayesian Networks with the 'partition-MCMC' algorithm.
partitionDist(x, y)
x |
Data.frame with columns node and partition |
y |
Data.frame with columns node and partition. Same nrows as x. |
Numeric, Partition distance between x and y.
For speed, no error handling if x and y do not have the same dimensions. Also, does not test to make sure x,y are data.frames of integers, take care!
x <- bnMCMCResults[[1]][[1]]
y <- bnMCMCResults[[1]][[100]]
partitionDist(x, y)