10 lines
122 B
Mathematica
10 lines
122 B
Mathematica
function d=compareMahalanobis(E, query, candidate)
|
|
|
|
x=query-candidate;
|
|
x=(x.^2)./(E.val');
|
|
x=sum(x);
|
|
|
|
d=sqrt(x);
|
|
|
|
return;
|