Why is the threshold value of peak detection is 10^-4?
조회 수: 4 (최근 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!