%{
*********************************************************** 
(c) Ian Davidson and Davidson Lab. Please cite 

The Cluster Description Problem-Complexity Results, Formulations and Approximati
ons, I Davidson, A Gourru and SS. Ravi
Advances in Neural Information Processing Systems, 2018, 6191-6201
***********************************************************
%}

function disp_tags(x, tagNames, k)

t = size(tagNames, 1);
for i = 1 : k
    offset = (i - 1) * t + 1;
    xi = x(offset : offset + t - 1);
    d = ['tags for cluster ', num2str(i), ' :'];
    disp(d)
    for j = 1 : t
        if xi(j) == 1
            disp(tagNames(j))
        end
    end
end
