资源简介
ICA独立成分分析的matlab代码,内有音频数据,以及使用说明,希望对大家有所帮助。
代码片段和文件信息
function [M] = correlation(XNFFTFSwinOVERLAPN)
%
% function [M] = correlation(XFSNFFTOVERLAPN)
% making correlation matrices for each frequency
% X must has 2 column
%
% Shiro Ikeda 14July1998
SPLEN = 1000;
[LENGTHdim] = size(X);
FL = floor((LENGTH-NFFT)/(NFFT-OVERLAP))+1;
DL = (SPLEN-1)*(NFFT-OVERLAP)+NFFT;
NF = NFFT/2+1;
repeat=floor(FL/SPLEN);
MARGIN=zeros(2*NFN);
te=OVERLAP; M=zeros(2*NF2*N+2); AVE=zeros(2*NF1);
for ITER=1:repeat
ts = te-OVERLAP+1; te = ts-1+DL;
B1=specgram(X(ts:te1)NFFTFSwinOVERLAP);
B2=specgram(X(ts:te2)NFFTFSwinOVERLAP);
if ITER==1
STKH1=B1(:1:N); STKH2=B2(:1:N);
end
for f=1:NF
f1=2*f-1; f2=2*f;
AVE(f1) = AVE(f1)+B1(f:)*ones(SPLEN1);
AVE(f2) = AVE(f2)+B2(f:)*ones(SPLEN1);
TMP=[MARGIN(f1:)B1(f:);MARGIN(f2:)B2(f:)];
MARGIN(f1:f2:)=[B1(fSPLEN-N+1:SPLEN);B2(fSPLEN-N+1:SPLEN)];
for tau=0:N
TMP1=TMP(:N-tau+1:SPLEN+N-tau)*TMP(:N+1:SPLEN+N)‘;
M(f1:f22*tau+1:2*tau+2)=M(f1:f22*tau+1:2*tau+2)+TMP1;
end
end
end
ts = te-OVERLAP+1; te = LENGTH;
B1=specgram(X(ts:te1)NFFTFSwinOVERLAP);
B2=specgram(X(ts:te2)NFFTFSwinOVERLAP);
RL=size(B12);
if repeat==0
STKH1=B1(:1:N); STKH2=B2(:1:N);
end
STKT1=B1(:RL-N+1:RL); STKT2=B2(:RL-N+1:RL);
for f=1:NF
f1=2*f-1; f2=2*f;
AVE(f1) = AVE(f1)+B1(f:)*ones(RL1);
AVE(f2) = AVE(f2)+B2(f:)*ones(RL1);
TMP=[MARGIN(f1:)B1(f:);MARGIN(f2:)B2(f:)];
for tau=0:N
TMP1=TMP(:N-tau+1:RL+N-tau)*TMP(:N+1:RL+N)‘;
M(f1:f22*tau+1:2*tau+2)=M(f1:f22*tau+1:2*tau+2)+TMP1;
end
end
AVE=AVE/FL;
for f=1:NF
f1=2*f-1; f2=2*f;
TMPA = AVE(f1:f2)*AVE(f1:f2)‘;
M(f1:f21:2)=M(f1:f21:2)-TMPA*FL;
M(f1:f21:2)=M(f1:f21:2)+M(f1:f21:2)‘;
for tau=1:N
t1=2*tau+1; t2=2*tau+2;
T1 = AVE(f1:f2)*FL-[STKT1(fN-tau+1:N);STKT2(fN-tau+1:N)]*ones(tau1);
T2 = AVE(f1:f2)*FL-[STKH1(f1:tau);STKH2(f1:tau)]*ones(tau1);
TMP1=T1*AVE(f1:f2)‘; TMP2=AVE(f1:f2)*T2‘;
M(f1:f2t1:t2)=M(f1:f2t1:t2)-TMP1-TMP2+TMPA*(FL-tau);
M(f1:f2t1:t2)=M(f1:f2t1:t2)+M(f1:f2t1:t2)‘;
end
end
for tau=0:N
M(:2*tau+1:2*tau+2)=M(:2*tau+1:2*tau+2)/(2*(FL-tau));
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 333 1998-07-23 16:02 ica_matlab\ica\decorrelation.m
文件 2179 1998-07-23 16:02 ica_matlab\ica\correlation.m
文件 1151 1998-07-23 16:05 ica_matlab\ica\sepfilter.m
文件 1213 1998-07-24 12:08 ica_matlab\ica\ica_f.m
文件 1364 1998-07-23 16:02 ica_matlab\ica\permutation.m
文件 66840 2003-06-23 21:42 ica_matlab\ica\X_room.wav
文件 960 2003-06-23 21:45 ica_matlab\ica\Readme
文件 123244 2003-06-23 21:42 ica_matlab\ica\X_linear.wav
目录 0 2011-10-23 12:57 ica_matlab\ica
目录 0 2011-10-23 12:57 ica_matlab
----------- --------- ---------- ----- ----
197284 10
- 上一篇:16qam仿真及注解
- 下一篇:蒙特卡洛法matlab实现
相关资源
- Pattern Recognition and Machine Learning(高清
- MATLAB 编程 第二版 Stephen J. Chapman 著
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- HDB3码、AMI码的MATLAB实现
- 3点GPS定位MATLAB仿真
- MATLAB数字信号处理85个实用案例精讲入
- matlab从入门到精通pdf94795
- 欧拉放大论文及matlab代码
- 跳一跳辅助_matlab版本
- 全面详解LTE MATLAB建模、仿真与实现
- MIMO-OFDM无线通信技术及MATLAB实现_孙锴
- MATLAB Programming for Engineers 4th - Chapman
- matlab 各种谱分析对比
- 分数阶chen混沌matlab程序
- 基于粒子群算法的非合作博弈的matl
- MATLAB车流仿真 包括跟驰、延误
- matlab空间桁架计算程序
- 基于MATLAB的图像特征点匹配和筛选
- DMA-TVP-FAVAR
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- newmark法源程序
- 传统关联成像、计算鬼成像matlab
- pri传统分选算法
- 摆动滚子推杆盘形凸轮设计
- 医学图像重建作业matlab源码
- Matlab实现混沌系统的控制
- 检测疲劳驾驶
- Matlab锁相环仿真-Phase Locked Loop.rar
评论
共有 条评论