Posted By


eiger_824 on 11/11/15

Tagged


Statistics


Viewed 173 times
Favorited by 0 user(s)

ScaleIndependentDistance


/ Published in: MatLab
Save to your folder(s)

asdfasdfasdf


Copy this code and paste it in your HTML
  1. function [d] = ScaleIndependentDistance(A,V)
  2. d = 0;
  3. V_prime = inv(V);
  4. aux = zeros(1,length(A));
  5. aux2 = 0;
  6. for i=1:length(A)
  7. for j=1:length(V)
  8. aux2 = aux2 + A(j)*V_prime(j,i);
  9. end
  10. aux(i)=aux2;
  11. end
  12.  
  13. for k=1:length(A)
  14. d = d + aux(k)*A(k);
  15. end
  16. end

URL: fasdfasdf

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.