diff Code/Descriptors/yin/private/src/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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Code/Descriptors/yin/private/src/minparabolic.m	Thu Jul 26 14:46:25 2012 +0100
@@ -0,0 +1,9 @@
+% [y,idx] = minparabolic(x) - locate minima using parabolic interpolation
+%
+%  x: input vector
+%  y: same as x, with local minima replaced by interpolated minima
+%  idx: position of interpolated minima (fractionary)
+%
+% At each local minimum of x, that sample and its neighbors are used to
+% determine a parabola.  The minimum of the parabola is used as the new
+% minimum value, the abscissa of the minimum is used as its position.