Why is the threshold value of peak detection is 10^-4?

1 回表示 (過去 30 日間)
May Thu
May Thu 2018 年 10 月 27 日
コメント済み: May Thu 2018 年 10 月 27 日
threshold = 1e-4;
[f0, loc] = pitchdet(frame, threshold);
function [f0, loc] = pitchdet(frame, threshold)
dt=1/(length(frame)-1);
t=[0:dt:1];
[maxs,mins]=peakdet(frame,threshold,t);
allpitchs = [maxs;mins];
allpitchs = sortrows(allpitchs,1);
loc = allpitchs(:,1);
f0 = allpitchs(:,2);
  4 件のコメント
Image Analyst
Image Analyst 2018 年 10 月 27 日
Probably because that was a threshold value that gave good results to the author for the data he/she was using. You can change it to adapt it to your data if you want.
May Thu
May Thu 2018 年 10 月 27 日
Thank You

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

回答 (1 件)

madhan ravi
madhan ravi 2018 年 10 月 27 日
1e-4 ==> 10^-4
  2 件のコメント
madhan ravi
madhan ravi 2018 年 10 月 27 日
編集済み: madhan ravi 2018 年 10 月 27 日
1e-4==10^-4
try it in command window
both are the same value but the notations used are different
May Thu
May Thu 2018 年 10 月 27 日
I know that 1e-4==10^-4==0.00001. But what I don't know is why this value is selected as threshold value?

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

Community Treasure Hunt

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

Start Hunting!

Translated by