comparison Code/Descriptors/yin/private/src/dftoperiod copy.m @ 0:ea0c737c6323

first commit
author Dawn Black <dawn.black@eecs.qmul.ac.uk>
date Thu, 26 Jul 2012 14:46:25 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ea0c737c6323
1 % prd=dftoperiod(d,b,t) - estimate period from difference function
2 %
3 % prd: row matrix of period estimates
4 %
5 % d: column vector or matrix of difference functions
6 % b: bounds matrix ([lo, hi])
7 % t: threshold
8 %
9 % Difference functions are supposed to be cumulative-mean-normalized.
10 % For each column of d, search for the first minimum between lo and hi that
11 % falls below threshold. The index of this minimum (re 0)
12 % is the period estimate.
13 %
14 % Mex function.