function u = tmuniformity(P)
%
% tmuniformity - Uniformity measure of a cooccurrence matrix
% On input:
%     P: 2D cooccurrence matrix
% On output:
%     u: the uniformity measure of P
% Call:
%     u = tmuniformity(P);
%

u = sum(sum(P.^2));
