Mercurial > hg > emotion-detection-top-level
annotate 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 |
rev | line source |
---|---|
Dawn@4 | 1 % prd=dftoperiod(d,b,t) - estimate period from difference function |
Dawn@4 | 2 % |
Dawn@4 | 3 % prd: row matrix of period estimates |
Dawn@4 | 4 % |
Dawn@4 | 5 % d: column vector or matrix of difference functions |
Dawn@4 | 6 % b: bounds matrix ([lo, hi]) |
Dawn@4 | 7 % t: threshold |
Dawn@4 | 8 % |
Dawn@4 | 9 % Difference functions are supposed to be cumulative-mean-normalized. |
Dawn@4 | 10 % For each column of d, search for the first minimum between lo and hi that |
Dawn@4 | 11 % falls below threshold. The index of this minimum (re 0) |
Dawn@4 | 12 % is the period estimate. |
Dawn@4 | 13 % |
Dawn@4 | 14 % Mex function. |