function y = CDF_histogram(M,x) % This subfunction calculate the PAC criterion values, M is the consensus % matrix and x is the threshold % Author: Gang Liu % Affiliation: Arbor Research Collaborative for Health % Email: Gang.Liu@arborresearch.org % Allcopy rights reserved N = length(M(1,:)); Greater = 0; parfor i = 1:(N-1) for j = (i+1):N if M(i,j)<=x Greater = Greater + 1; end end end y = (Greater)/(N*(N-1)/2); end