% This script is used for a quick comparison between 
% two circulant convolution methods. 


% ------------------
% Xiaobai Sun 
% cps250 
% Duke CS
% ------------------ 


% ... the vector size 

n = 5; 

% ... generate two random vectors as input 

a = rand(n, 1); 
b = rand(n,1); 

% ... run two functions 

cfast = fastCircConv(a,b); 
cdirt = dirtCircConv(a,b); 

% ... output rendering in primitive way 

disp( ' ' ) 
disp( '    Numerical Comparison between two circulant convolution methods ' ) 
disp( '     fast  |   direct' ) 

[ cfast, cdirt ] 
