sdols (version 2.0.0)

confidence: Compute Clustering Confidence

Description

This function computes the confidence values for n observations based on a clustering estimate and the expected pairwise allocation matrix.

Usage

confidence(estimate, expectedPairwiseAllocationMatrix)

Arguments

estimate

A vector of length n, where i and j are in the same cluster if and only if clustering[i] == clustering[j].

expectedPairwiseAllocationMatrix

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.

See Also

expectedPairwiseAllocationMatrix, dlso, salso

Examples

Run this code
# NOT RUN {
suppressWarnings({  # For testing purposes, suppress deprecation warning.

probabilities <- expectedPairwiseAllocationMatrix(iris.clusterings)
clustering <- salso(probabilities)
conf <- confidence(clustering, probabilities)
conf

})

# }

Run the code above in your browser using DataLab