qinterp

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 11:34, 21 April 2011 by 193.171.195.48 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Compute interploated coordinates of local peaks of a function using 2nd order interpolation.

Usage
qinterp(dxscalar, y, ip {, nwidth})
qinterp(xvector, y, ip {, nwidth})
dx
distance bewteen x values; x[i] = dx * i
x
x data vector
y
y data vector; y[i] = f(x[i]).
ip
a scalar or vector containing the indices of local maxima
nwidth
the width to be used for interpolation
Result
A vector r with 2 elements (r[0] = xpeak, r[1] = ypeak) or a matrix with two rows (r[0,j] = xpeakj, r[1,j] = ypeakj) containing the interpolated coordinates of the local maxima (peaks). For the 2nd order (parabolic) interpolation the (x,y) points at ip-npeaks, ip and ip+npeask are used.
See also
ipeak, formants, interp

<function list>

Navigation menu

Personal tools