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
|
| pthetamake(nrad, nphi, ntheta)
|
function [ptheta, maxrad] = pthetamake(nrad, nphi, ntheta)
% pthetamake - make matrix of theta indicies for polar samples
% G.A. Reina 16 Jan 2007
% Modified from the C code provided by D. L. Jones and R. G. Baraniuk
% "An Adaptive Optimal-Kernel Time-Frequency Representation"
% by D. L. Jones and R. G. Baraniuk, IEEE Transactions on Signal
% Processing, Vol. 43, No. 10, pp. 2361--2371, October 1995.
deltheta = 2*pi/ntheta;
maxrad = ones(1, nphi)*nrad;
for ii = 0:(nphi-1),
for jj = 0:(nrad-1),
theta = -((pi*sqrt(2)/nrad)*jj)*cos((pi*ii)/nphi);
if (theta > -eps) % in the original code thiis is 0.0
rtemp = theta / deltheta;
if ( rtemp > (ntheta / 2 - 1))
rtemp = -1;
if (jj < maxrad(ii+1))
maxrad(ii+1) = jj;
end
end
else
rtemp = (theta + 2*pi) / deltheta;
if (rtemp < ((ntheta/2) + 1))
rtemp = -1;
if (jj < maxrad(ii+1))
maxrad(ii+1) = jj;
end
end
end
ptheta(jj+1, ii+1) = rtemp;
end
end
|
|
Contact us at files@mathworks.com