diff Code/Descriptors/yin/private/dftoperiod2.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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Code/Descriptors/yin/private/dftoperiod2.m	Thu Jul 26 14:46:25 2012 +0100
@@ -0,0 +1,17 @@
+% prd=dftoperiod2(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.
+%
+% This version differs from dftoperiod in that the threshold is 
+% incremented by the global minimum of the difference function.
+%
+% Mex function.