Code covered by the BSD License
-
[total,Evector]=OQDF_M(tr,trl...
-
[total,ml]=NC(tr,trl,te,tel)
-
[total]=OQDF_E(tr,trl,te,tel,...
-
[total]=OQDF_L(tr,trl,te,tel,...
-
total=KNN(tri,trl,tei,tel,k)
total=total/mte*100;
-
total=nntrte(tri,trl,tei,tel)
-
Sample_test.m
-
View all files
|
|
| total=nntrte(tri,trl,tei,tel)
|
function total=nntrte(tri,trl,tei,tel)
[mte,n]=size(tei);
str=sum(tri'.*tri');
ste=sum(tei'.*tei');
p=zeros(mte,1);
q=ones(mte,1);
for i=1:mte;
d=str+ste(i)-2*tei(i,:)*tri';
[p(i),q(i)]=min(d);
end;
tel1=trl(q(:));
total=0;
for i=1:mte;
if tel1(i)~=tel(i);
total=total+1;
end;
end;
|
|
Contact us at files@mathworks.com