フィルターのクリア

How can I speed my function?

2 ビュー (過去 30 日間)
zaier xiang
zaier xiang 2017 年 4 月 22 日
編集済み: zaier xiang 2017 年 4 月 27 日
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 .

採用された回答

Andrew Newell
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),:);
See Matlab Indexing and Repmat Replacement for a discussion of this issue.
That said, it may be too much to expect a really fast implementation of this algorithm, judging by this discussion of the algorithm.
  1 件のコメント
zaier xiang
zaier xiang 2017 年 4 月 24 日
thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!