Mercurial > hg > emotion-detection-top-level
annotate Code/Descriptors/yin/private/minparabolic.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 |
rev | line source |
---|---|
dawn@0 | 1 % [y,idx] = minparabolic(x) - locate minima using parabolic interpolation |
dawn@0 | 2 % |
dawn@0 | 3 % x: input vector |
dawn@0 | 4 % y: same as x, with local minima replaced by interpolated minima |
dawn@0 | 5 % idx: position of interpolated minima (fractionary) |
dawn@0 | 6 % |
dawn@0 | 7 % At each local minimum of x, that sample and its neighbors are used to |
dawn@0 | 8 % determine a parabola. The minimum of the parabola is used as the new |
dawn@0 | 9 % minimum value, the abscissa of the minimum is used as its position. |