No BSD License  

Highlights from
Finding the Similar Entries: A Quantitative Approach based on CPU Runtime Behavior

image thumbnail

Finding the Similar Entries: A Quantitative Approach based on CPU Runtime Behavior

by

 

08 Apr 2009 (Updated )

Entry to Matlab contest Spring 2009

compute_correlation(d, allLineList);
%-------------------------------------------------------
% Filename:	compute_and_plot_correlation.m
% Author:	C Jethro Lam, jethrolam@gmail.com
% Date:		4/4/2009
%
% Purpose:	Compute and plot the correlation matrix
%
%-------------------------------------------------------
function clam_corr_matrix = compute_correlation(d, allLineList);     

num_entries	= size(d, 1); 
% Compute signature for each entry
for n = 1:num_entries
  [tmp d(n).clam_sig] = compute_clam_sig(d, allLineList, n); 
end
% Compute correlation matrix
clam_corr_matrix = zeros(num_entries, num_entries);
for m = 1:num_entries
  for n = 1:num_entries
    clam_corr_matrix(m,n) = max(conv(d(m).clam_sig, flipud(d(n).clam_sig)));
  end
end


Contact us