How can I speed my function?
조회 수: 2 (최근 30일)
이전 댓글 표시
the function is used to compute hoeffdingsD measure,but the performance of my function is poor. when i use it in my code ,it usually cost several days.who can help me ,or compile it .
댓글 수: 0
채택된 답변
Andrew Newell
2017년 4월 22일
One source of delays can be repmat. This can be replaced by a suitable choice of index, as in the following:
r = R(i,:);
r = r(ones(N,1),:);
That said, it may be too much to expect a really fast implementation of this algorithm, judging by this discussion of the algorithm.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!