Parallel and distributed systems exercise 2: ditributed all-kNN algorithm.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

15 行
242 B

  1. function [M, I] = maxIdx(Vec)
  2. %tail Calculate the max,index pair of each Vec(:)
  3. %
  4. n = length(Vec);
  5. I = 0;
  6. M = -1;
  7. for j = 1:n
  8. if M < Vec(j)
  9. M(j) = Mat(i,j);
  10. I(j) = i;
  11. end
  12. end
  13. end