Derivative of a vector using FFT
[Dy, DY] = fftderiv(y, [n , sigma, delta, in, out]) [Dy, DY] = fftderiv(y, <named_args>)
xsm
is a function of time
(inverse FFT will be applied) or frequency (inverse FFT
will not be applied). Use the value 'complex' if
you want the output in time domain but without eliminating
the inverse FFT's complex part.Function fftderiv
performs the n-th derivative of a periodic
function, stored in a vector, using FFT. The optional arguments in
and out enables the user to reuse previously done FFTs. Here are
some possible uses:
n
defaults to 1, sigma
defaults to 5,
in
and out
both defaults to 'time'.n
equals 2, sigma
equals 3,
in
and out
both defaults to 'time'.n
dafaults to 1,
y
in frequency domain (fft has already been done).
Dy
in frequency domain (inverse fft is NOT done by gsm)In all above examples, FDy
is in the frequency domain. It
is the second output parameter, and thus it was discarded in the
above examples.
"Shape Analysis and Classification", L. da F. Costa and R. M Cesar Jr., CRC Press, pp. 335-347.
"1D and 2D Fourier-based approaches to numeric curvature estimation and their comparative performance assessment", L. F. Estrozi, L. G. R. Filho, A. G. Campos and L. da F. Costa, Digital Signal Processing, 2002.
http://siptoolbox.sourceforge.net