Why is the threshold value of peak detection is 10^-4?
1 次查看(过去 30 天)
显示 更早的评论
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
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.
回答(1 个)
madhan ravi
2018-10-27
1e-4 ==> 10^-4
2 个评论
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assembly 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!