Mercurial > hg > emotion-detection-top-level
view Code/Descriptors/yin/private/dftoperiod.m @ 2:5fd388fdd6ef
initial commit - this file allows the programmer to select which of the PRAAT generated metrics the user wishes to use for classification, and then applies the k-means classifier.
author | Dawn Black <dawn.black@eecs.qmul.ac.uk> |
---|---|
date | Mon, 10 Sep 2012 09:18:15 +0100 |
parents | ea0c737c6323 |
children |
line wrap: on
line source
% 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.