% Histograms Cosine similarity
% Concordia Univ, ECE dept, Dr. M. Amer
% Author: J. Valognes

function similarity = histCosSimilarity(hist1, hist2)

dot_product = dot(hist1,hist2);
product_norms = norm(hist1)*norm(hist2);
similarity = dot_product/product_norms;

end
