How to calcuate sum of each row for a dataset through MapReduce??
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
I am working on a data clustering algorithm, I want row sum for each data set ID. I want the answer in the form of key, value.
댓글 수: 3
답변 (2개)
  A. P. B.
      
 2017년 6월 8일
        If you have an N by M matrix; for P number of datasets
1) Read each data set
2)Calculate the sum and the val=sum(data(i,:));
But this gives only the value. Did not get what 'key' means in your query?
Usually 'min' or 'max' function which returns the minimum value or maximum value along a row returns the index value (column index) not the sum function.
참고 항목
카테고리
				Help Center 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



