123456789101112131415161718 |
- function [ DistVec ] = SumCentroidsDistances( DistMat, iXQ )
- %SUMCENTROIDSDISTANCES Summary of this function goes here
- % Detailed explanation goes here
- Ntrain=size(iXQ,2);
- mm=size(DistMat,2);
- DistVec=zeros(1,Ntrain);
- for kk=1:Ntrain
- dxtmp=0;
- for rr=1:mm
- dxtmp=dxtmp+DistMat(iXQ(rr,kk),rr);
- end
- DistVec(kk)=dxtmp;
- end
- end
|