Analysis of the Compatibility Criterion - compat.m

Syntax:

[comp,Spca]=compat(results,q,inic)

This function computes the compatibility matrix comp (ncluster × ncluster) and the matrix Spca (ncluster × ncluster), which contains the similarity measures between the PPCA models based on the index developed by Krzanowski. This function computes the compatibility and similarity measures between each pair of segments/clusters.