Find Peaks In a Faster Way
9 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone! I'm trying to develop a code to process a signal accordingly to an algorithm. I have the serial code already and I'm trying to parallelize it. I found out that the part that is most time consuming is the built-in MATLAB function:
[pks,locs] = findpeaks(data)
Is there anyway I can make it faster, or do I need to implement myself something similar? In order to be able to use either GPU or elements of the Parallel C. Toolbox.
Thanks!
1 件のコメント
Joss Knight
2015 年 11 月 3 日
Do you have Image Processing Toolbox? You may find imregionalmax can be adapted to work for your problem. It is optimized for GPU.
採用された回答
Edric Ellis
2015 年 11 月 3 日
Unfortunately, findpeaks does not currently support gpuArray inputs. You might be able to create your own simplified version using diff and find...
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Time-Frequency Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!