Mercurial > hg > emotion-detection-top-level
diff Code/Descriptors/yin/private/dftoperiod copy.m @ 4:92ca03a8fa99 tip
Update to ICASSP 2013 benchmark
author | Dawn Black |
---|---|
date | Wed, 13 Feb 2013 11:02:39 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Code/Descriptors/yin/private/dftoperiod copy.m Wed Feb 13 11:02:39 2013 +0000 @@ -0,0 +1,14 @@ +% prd=dftoperiod(d,b,t) - estimate period from difference function +% +% prd: row matrix of period estimates +% +% d: column vector or matrix of difference functions +% b: bounds matrix ([lo, hi]) +% t: threshold +% +% Difference functions are supposed to be cumulative-mean-normalized. +% For each column of d, search for the first minimum between lo and hi that +% falls below threshold. The index of this minimum (re 0) +% is the period estimate. +% +% Mex function.