Correlation coefficeint as a similarity index
Mostra commenti meno recenti
Hello everyone,
I am trying to find similarity among let's say 1000 signals via correlation coefficient. Each signal will be compared against the other signal so a weights matrix of size 1000x1000 will be created. I am using two for loops to find this value via MATLAB command corrcoef(signals(:,i),signals(:,j)). This command returns a 4x4 matrix (let's call it R), where the correlation coefficent value is R(1,2)=R(2,1) which I am storing as the weight.
My questions is how to avoid for loops (because it literally took over 2 hours for signal size of 9) and compute the weights matrix efficiently. Also, a value close to +1 means more similarity and a value close to 0 means less similarity. What would we say about a value in negative range (since the value can range from -1 to +1), will a value of -1 be still more similar or it will be considered as least similar? What about a value of let's say -0.2? Kindly guide.
Thanks.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Correlation and Convolution in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!