How can I speed my function?
1 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!