亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? testecggenerator2.m

?? matlab編程環境下
?? M
字號:
%
% Test program for generating synthetic maternal and fetal ECG mixtures
% with realistic ECG noises and extracting independent components using the
% JADE ICA algorithm.
% The results may be compared in different SNRs for the maternal ECG and
% the fetus. When applying ICA in high input SNRs, ICA tends to extract
% three maternal and three fetal components, which correspond with the
% three degrees of freedom in the dipole model. However, as the input noise
% is increased, the weak fetal components vanish in noise and there are
% traces of the fetal components in the maternal ones. This implies that
% ICA fails to separate the maternal and fetal sub-spaces in low input
% SNRs.
%
% Dependencies: The synthetic ECG generator and noise generator package of
%   the Open Source ECG Toolbox. For ICA decomposition, the JADE ICA is
%   also required.
%
% Open Source ECG Toolbox, version 1.0, November 2006
% Released under the GNU General Public License
% Copyright (C) 2006  Reza Sameni
% Sharif University of Technology, Tehran, Iran -- LIS-INPG, Grenoble, France
% reza.sameni@gmail.com

% This program is free software; you can redistribute it and/or modify it
% under the terms of the GNU General Public License as published by the
% Free Software Foundation; either version 2 of the License, or (at your
% option) any later version.
% This program is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
% Public License for more details. You should have received a copy of the
% GNU General Public License along with this program; if not, write to the
% Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
% MA  02110-1301, USA.

%//////////////////////////////////////////////////////////////////////////
clc
close all;
clear;
% randn('state',2);

%//////////////////////////////////////////////////////////////////////////
decompose = 1; % 1 for decomposition using ICA, 0 for simple results

%//////////////////////////////////////////////////////////////////////////
% General parameters
N = 5000;       % # of signal samples
NN = 5000;      % # of signal samples to plot <= N
fs = 500;       % desired sampling rate

% Noise parameters
snr = 10;
w_bw = 5;       % weight of baseline wander noise in the generated noise
w_em = 1;       % weight of electrode movement noise in the generated noise
w_ma = 1;       % weight of muscle artifact noise in the generated noise

% Heart locations
pos_m = [-25 7 20];     % Maternal heart location
pos_f = [-15 -4 2];     % Fetal heart location

% Electrode pair locations
ElecPos = [-5 -7 7 ; -5 -7 -7 ; -5 7 7 ; -5 7 -7 ; -5 -1 -5 ; -10 10 18; -10 0 15; -10 10 15];
ElecNeg = [0 0 0 ; 0 0 0 ; 0 0 0 ; 0 0 0 ; 0 0 0 ; -35 10 18; -10 10 15; -10 10 24];
NumCh = size(ElecPos,1);

% Maternal dipole parameters
F_m = .9;                     % maternal heart rate
k_m = 1;                      % maternal dipole attenuation parameter
R_m = Rotate3D(0,0,0);        % maternal dipole rotation matrices (tetax,tetay,tetaz)
Lambda_m = eye(3);

teta0_m = pi/3;

tetai_m.x  = [-1.09  -0.83   -0.19     -.07  0 .06        0.22    1.2 1.42 1.68];
alphai_m.x = [0.03   .08    -0.13    .85 1.11 .75     0.06   0.1  0.17 0.39];
bi_m.x     = [0.0906    0.1057    0.0453    0.0378    0.0332    0.0302    0.0378    0.6040 0.3020    0.1812];

tetai_m.y  = [-1.1  -0.9 -0.76       -0.11   -.01       0.065  0.8      1.58];
alphai_m.y = [0.035 0.015 -0.019     0.32    .51     -0.32    0.04   0.08];
bi_m.y     = [0.07  .07  0.04        0.055    0.037    0.0604  0.450  0.3];

tetai_m.z  = [-1.1  -0.93 -0.7      -.4     -0.15    .095    1.05 1.25 1.55];
alphai_m.z = [-0.03 -0.14 -0.035    .045     -0.4    .46    -.12 -.2 -.35];
bi_m.z     = [.03  .12  .04         .4    .045       .05    .8 .4 .2];

% Fetal dipole parameters
F_f = 2.2;                          % fetal heart rate
k_f = .1;                            % fetal dipole attenuation parameter
R_f = Rotate3D(-3*pi/4,0,-pi/2);     % fetal rotation matrices (tetax,tetay,tetaz)
Lambda_f = eye(3);

teta0_f = -pi/2;

tetai_f.x  = [-0.7    -0.17    0       0.18     1.4];
alphai_f.x = .1*[0.07     -0.11   1.3     0.07   0.275];
bi_f.x     = [.1       .03     .045     0.02    0.3];

tetai_f.y  = [-0.9     -0.08   0       0.05        1.3];
alphai_f.y = .1*[0.04     0.3     .45     -0.35       0.05];
bi_f.y     = [.1       .05      .03    .04         .3];

tetai_f.z  = [-0.8      -.3     -0.1        .06     1.35];
alphai_f.z = .1*[-0.14    .03     -0.4        .46     -0.1];
bi_f.z     = [.1       .4      .03         .03     .3];

%//////////////////////////////////////////////////////////////////////////
% Noise generation
M = 10800;
% original noise template
template =  NoiseGenerator(5,1,0,M,360,[w_bw,w_em,w_ma],1000);

% parameters required for estimating the AR coefficients using a Kalman Filter (KF)
order = 12;                         % AR model order for modeling the ECG noise
[a0,e] = aryule(template,order);    % a global AR model
q = (.05*max(abs(a0(2:end))))^2;    % AR coefficients covariance
R = 1;                              % unit variance noise
p0 = 1e6*q;                         % covariance of the KF initial state
alpha = 1;                          % KF forgetting factor

% time-variant AR parameter estimation using KF and Kalman Smoother (KS)
[Ahat,Asmoothed] = TimeVariantAR(template,order,a0(2:end)',q,R,p0,alpha);

% generating different instances of ECG noise using the time-variant AR parameters
noise =  zeros(NumCh,N);
for j = 1:NumCh,
    x = randn(1,M);
    y1 =  zeros(M,1);
    for i = order+1:M-1,
        y1(i) = (sqrt(1)*x(i)-Ahat(:,i)'*y1(i-1:-1:i-order))/1;         % KF
    end
    % resampling the noise matrix to the desired sampling rate
    n1 = resample((y1-mean(y1))/std(y1),fs,360);
    noise(j,:) = n1(101:N+100);
end

%//////////////////////////////////////////////////////////////////////////
% ECG calculation
for i = 1:NumCh,
    for j = 1:3,
        H_m(i,j) = k_m* ((ElecPos(i,j)-pos_m(j))/sqrt(sum((ElecPos(i,:)-pos_m).^2))^3 - (ElecNeg(i,j)-pos_m(j))/sqrt(sum((ElecNeg(i,:)-pos_m).^2))^3);
        H_f(i,j) = k_f* ((ElecPos(i,j)-pos_f(j))/sqrt(sum((ElecPos(i,:)-pos_f).^2))^3 - (ElecNeg(i,j)-pos_f(j))/sqrt(sum((ElecNeg(i,:)-pos_f).^2))^3);
    end
end
[DIP_m teta_m] = DipoleGenerator2(N,fs,F_m,alphai_m,bi_m,tetai_m,teta0_m);
[DIP_f teta_f] = DipoleGenerator2(N,fs,F_f,alphai_f,bi_f,tetai_f,teta0_f);
VCG_m = R_m*Lambda_m*[DIP_m.x ; DIP_m.y ; DIP_m.z];
VCG_f = R_f*Lambda_f*[DIP_f.x ; DIP_f.y ; DIP_f.z];
s0 = H_m*VCG_m + H_f*VCG_f;
s = s0 + (sqrt(sum(s0.^2,2))./sqrt(sum(noise.^2,2))/sqrt(10^(snr/10))*ones(1,size(s0,2))).*noise;

%//////////////////////////////////////////////////////////////////////////
% Mixture decomposition and plotting
time = [0:N-1]/fs;
if(decompose == 0),
    % plotting results
    figure;
    plot(time,1000*s');
    grid
    xlabel('time(s)');
    ylabel('Amplitude(mV)');
    title('Synthetic maternal and fetal ECG mixtures with realistic ECG noises.');

else
    %//////////////////////////////////////////////////////////////////////////
    % Independent component analysis using the JADE algorithm
    
    % fastICA
    % [s2, A, W] = fastica(s, 'displayMode', 'off');

    % JADE ICA
    W =  jadeR(s);
    s2 = real(W*s);
    A = pinv(W);
    
    % plotting results
    chindex = 1:NumCh;

    %//////////////////////////////////////////////////////////////////////////
    for i = 1:size(s,1),
        h = figure;
        plot(time(1:NN),1000*s(i,1:NN),'k','Linewidth',.5);
        xlabel('time(s)','FontSize',10);
        ylabel(['Ch_',num2str(chindex(i)),'(mV)'],'FontSize',10);
        grid;
        set(gca,'FontSize',10);
    end

    %//////////////////////////////////////////////////////////////////////////
    for i = 1:size(s2,1),
        h = figure;
        plot(time(1:NN),s2(i,1:NN),'k','Linewidth',.5);
        xlabel('time(s)','FontSize',10);
        ylabel(['IC_',num2str(chindex(i))],'FontSize',10);
        grid;
        set(gca,'FontSize',10);
    end

    %//////////////////////////////////////////////////////////////////////////
    VV1 = s(3,:)-s(1,:);
    VV2 = s(4,:)-s(2,:);
    VV3 = s(6,:);
    h = figure;
    plot3(1000*VV1,1000*VV2,1000*VV3,'k','Linewidth',.5);
    grid;
    view([30,15])

    xlabel('Ch_3-Ch_1 (mV)','FontSize',10);
    ylabel('Ch_4-Ch_2 (mV)','FontSize',10);
    zlabel('Ch_6 (mV)','FontSize',10);
    set(gca,'FontSize',10);
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品超碰97尤物18| 久久综合五月天婷婷伊人| 成人高清在线视频| 韩国三级中文字幕hd久久精品| 亚洲国产成人精品视频| 亚洲精品日韩综合观看成人91| 欧美国产一区视频在线观看| 国产欧美日韩精品在线| 国产精品无遮挡| 亚洲欧美一区二区在线观看| 亚洲手机成人高清视频| 亚洲一区在线电影| 亚洲地区一二三色| 久久99久久精品欧美| 国产在线视频精品一区| 粉嫩av一区二区三区在线播放| 国产+成+人+亚洲欧洲自线| 91影院在线免费观看| 欧美巨大另类极品videosbest | 在线观看91视频| 精品视频一区二区不卡| 91麻豆精品国产91久久久更新时间| 欧美人与禽zozo性伦| 欧美mv日韩mv国产网站| 国产精品毛片无遮挡高清| 亚洲国产乱码最新视频| 狠狠色丁香久久婷婷综合_中| 国产69精品久久99不卡| 欧美日韩免费视频| 亚洲精品在线电影| 国产精品久久久久aaaa| 五月激情六月综合| 国产盗摄一区二区| 精品婷婷伊人一区三区三| 精品av综合导航| 一区二区三区鲁丝不卡| 国产真实乱对白精彩久久| 91久久精品日日躁夜夜躁欧美| 日韩欧美一二区| 亚洲另类在线制服丝袜| 国精品**一区二区三区在线蜜桃| 成年人网站91| 日韩视频一区二区在线观看| ...xxx性欧美| 久久精品99久久久| 欧美日韩在线观看一区二区| 中文字幕av一区二区三区| 五月婷婷另类国产| 成熟亚洲日本毛茸茸凸凹| 欧美精品三级在线观看| 最新国产成人在线观看| 国产一区二区三区电影在线观看| 91福利在线免费观看| 欧美极品美女视频| 精品一二三四区| 4438成人网| 亚洲国产日日夜夜| 91尤物视频在线观看| 国产精品视频一区二区三区不卡| 蜜桃视频一区二区三区| 欧美疯狂做受xxxx富婆| 亚洲综合在线视频| 一本一本大道香蕉久在线精品 | 在线观看一区日韩| 国产亚洲一区字幕| 久久疯狂做爰流白浆xx| 9191久久久久久久久久久| 亚洲综合激情小说| 91麻豆免费在线观看| 亚洲图片欧美激情| 99精品视频在线观看免费| 国产精品美女视频| 成人黄页毛片网站| 国产精品卡一卡二卡三| av综合在线播放| 国产精品国产三级国产专播品爱网| 国产精品一区二区男女羞羞无遮挡| 欧美电影免费观看高清完整版在线| 亚洲成人激情社区| 欧美日韩中文一区| 亚洲3atv精品一区二区三区| 欧美美女bb生活片| 免费日韩伦理电影| 久久综合久久综合久久综合| 国产91丝袜在线播放| 国产女主播在线一区二区| 国产91高潮流白浆在线麻豆| 国产精品毛片久久久久久| 91香蕉视频mp4| 夜夜精品视频一区二区| 欧美精品乱码久久久久久| 日韩电影免费在线看| 精品免费日韩av| 国产成人精品免费网站| 亚洲日本在线视频观看| 欧美性色欧美a在线播放| 日本aⅴ精品一区二区三区| 久久综合狠狠综合| av在线综合网| 亚洲欧美怡红院| 777久久久精品| 国产美女视频一区| 亚洲黄一区二区三区| 日韩欧美国产高清| 99久久免费精品| 日韩av中文字幕一区二区| 久久久久高清精品| 欧美日韩精品综合在线| 国产成人免费9x9x人网站视频| 日本一区二区三区四区在线视频| 色综合久久久久综合99| 欧美aaaaaa午夜精品| 亚洲国产精华液网站w| 在线一区二区视频| 国产一区二区三区蝌蚪| 亚洲精品乱码久久久久久| 337p日本欧洲亚洲大胆精品 | 国产精品综合二区| 亚洲综合网站在线观看| 久久免费美女视频| 欧美精品乱码久久久久久| 不卡区在线中文字幕| 蜜桃精品视频在线观看| 亚洲精品成a人| 久久五月婷婷丁香社区| 欧美久久久一区| 99r国产精品| 国产精品一区二区三区四区| 日韩精品亚洲一区| 亚洲男人的天堂网| 欧美激情一区二区在线| 日韩精品中午字幕| 欧美日韩一级二级三级| 色网站国产精品| 成人黄色免费短视频| 九色综合狠狠综合久久| 日韩av中文字幕一区二区三区 | 精品国产乱码久久久久久蜜臀 | 精品av综合导航| 欧美一区二区三区喷汁尤物| 欧美三级电影网| 色香蕉久久蜜桃| 91捆绑美女网站| 99免费精品视频| 99热这里都是精品| 成人黄页毛片网站| 波多野结衣中文一区| 国产一区在线观看麻豆| 久久超碰97中文字幕| 久久精品国产网站| 蜜臀久久99精品久久久久宅男| 亚洲香肠在线观看| 亚洲一区二区欧美| 一区二区三区欧美激情| 亚洲自拍偷拍麻豆| 午夜精品爽啪视频| 亚洲高清免费视频| 午夜精品久久久久久久久久久 | 久久久国产精品不卡| 国产偷国产偷亚洲高清人白洁| 国产无人区一区二区三区| 国产午夜亚洲精品午夜鲁丝片| 欧美国产日韩一二三区| 国产精品久久久久aaaa| 一区二区三区国产精品| 亚洲自拍欧美精品| 日本美女一区二区| 激情综合色播激情啊| 成人夜色视频网站在线观看| 成人97人人超碰人人99| 91成人国产精品| 欧美一级理论性理论a| 久久综合999| 日韩理论片在线| 婷婷开心久久网| 国产精品综合视频| 91福利小视频| 337p粉嫩大胆色噜噜噜噜亚洲| 国产精品久久网站| 亚洲观看高清完整版在线观看| 美女久久久精品| 国产成人av电影免费在线观看| 色偷偷久久人人79超碰人人澡| 欧美一区二区三区免费视频| 久久久不卡网国产精品一区| 樱桃国产成人精品视频| 美女一区二区三区| 播五月开心婷婷综合| 欧美一区二区三区精品| 国产精品美女视频| 免费人成精品欧美精品| 成人91在线观看| 91精品免费在线| 日韩美女视频19| 久久精品国产77777蜜臀| 91麻豆精品视频| 国产亚洲综合av| 日日嗨av一区二区三区四区| 成人av资源在线观看| 精品久久久久久亚洲综合网|