This function computes the confidence values for n observations based on a clustering estimate and the expected pairwise allocation matrix.
n
confidence(estimate, expectedPairwiseAllocationMatrix)
A vector of length n, where i and j are in the same cluster if and only if clustering[i] == clustering[j].
i
j
clustering[i] == clustering[j]
A n-by-n symmetric matrix whose (i,j) elements gives the estimated expected probability that items i and j are in the same cluster.
(i,j)
expectedPairwiseAllocationMatrix, dlso, salso
expectedPairwiseAllocationMatrix
dlso
salso
# NOT RUN { probabilities <- expectedPairwiseAllocationMatrix(iris.clusterings) clustering <- salso(probabilities) conf <- confidence(clustering,probabilities) conf # } # NOT RUN { # }
Run the code above in your browser using DataLab