No BSD License
-
fft_tfr(n,m,x,y)
-
mklag(nrad,nphi,nlag,iphi,jra...
mklag: compute radial sample lag
-
plagmake(nrad, nphi, nlag)
plagmake - make matrix of lags for polar running AF
-
polafint(nrad,nphi,ntheta,max...
polafint: interpolate AF on polar grid;
-
pthetamake(nrad, nphi, ntheta...
pthetamake - make matrix of theta indicies for polar samples
-
rectaf(xr,xi,laglen,freqlen,a...
rectaf: generate running AF on rectangular grid;
-
rectamake(nlag, n, forget)
-
rectkern(itau,itheta,ntheta,n...
rectkern: generate kernel samples on rectangular grid
-
rectopol(nraf, nlag, nrad, np...
rectopol: find polar indices corresponding to rect samples
-
rectrotmake(nraf, nlag, outde...
rectrotmake: make array of rect AF phase shifts
-
sigupdate(nrad,nphi,nits,vol,...
sigupdate: update RG kernel parameters
-
main_AOK.m
-
View all files
from
Adaptive Optimal Kernel
by Tony Reina
An Adaptive Optimal-Kernel Time-Frequency Representation
|
| fft_tfr(n,m,x,y)
|
function [x,y] = fft_tfr(n,m,x,y)
%***************************************************************/
% fft.c
% Douglas L. Jones
% University of Illinois at Urbana-Champaign
% January 19, 1992
%
% fft: in-place radix-2 DIT DFT of a complex input
%
% input:
% n: length of FFT: must be a power of two
% m: n = 2**m
% input/output
% x: double array of length n with real part of data
% y: double array of length n with imag part of data
%
% Permission to copy and use this program is granted
% as long as this header is included.
%***************************************************************/
j = 0; % bit-reverse
n2 = n/2;
for i=1:(n - 2),
n1 = n2;
while (j >= n1)
j = j - n1;
n1 = n1/2;
end
j = j + n1;
if (i < j)
t1 = x(i+1);
x(i+1) = x(j+1);
x(j+1) = t1;
t1 = y(i+1);
y(i+1) = y(j+1);
y(j+1) = t1;
end
end
n1 = 0;
n2 = 1;
for i=0:(m-1),
n1 = n2;
n2 = n2 + n2;
e = -2*pi/n2;
a = 0;
for j=0:(n1-1),
c = cos(a);
s = sin(a);
a = a + e;
for k=j:n2:(n-1),
t1 = c*x(k+n1+1) - s*y(k+n1+1);
t2 = s*x(k+n1+1) + c*y(k+n1+1);
x(k+n1+1) = x(k+1) - t1;
y(k+n1+1) = y(k+1) - t2;
x(k+1) = x(k+1) + t1;
y(k+1) = y(k+1) + t2;
end
end
end
|
|
Contact us at files@mathworks.com