tests/pairwiseConsistencyMeasures.R

library(MCDA)

amatrix <- t(matrix(c(1,0.25,4,1/6,4,1,4,0.25,0.25,0.25,1,0.2,6,4,5,1),nrow=4,ncol=4))
test <- pairwiseConsistencyMeasures(amatrix)

stopifnot(round(test$CR, digits = 3) == 0.164 && round(test$Congruence, digits = 3) == 1.275 && round(test$Dissonance, digits = 3) == 0.083 && round(test$Koczkodaj, digits = 3) == 0.792)
paterijk/MCDA documentation built on April 7, 2023, 8:31 p.m.