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

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

?? ectbcorr.m

?? matlab數字信號處理工具箱
?? M
字號:
function [ht,m,r] = ECTBcorr(QRStime,ectb_times);
% Correction of ectopic beat Presence Effect
%
% This Algorithm corrects the effect of ectopic beats, annotated
%    by the function QRScorr, by calculating the corrected Heart Timing Signal,
%    according to the IPFM - Modell
% With the Heart Timing Signal the HRV PSD estimation can be calculated by the 
%    FHTIS - method. (see [1])
% 
% INPUT:
%  QRStime:      Time values of the detected QRS-Complexes
%  ectb_times:   Time values of the ectopic beats generated by
%                   QRScorr(output-variable: ANNOT.mov)
%
% OUTPUT:
%  ht:           ht.data: Heart Timing Signal
%                ht.time: Dedicated Time Series
%  m:            Derivative of the heart timing signal,
%                  dedicated time series is "ht.time"
%  r:            Instantaneous Heart Rate
%                  dedicated time series is "ht.time"
%
%
% Example:
%   [ht,m,r] = ECTBcorr(QRStime_corr,ectb_times);
%
%
% Filename: ECTBcorr.m
% Last modified: 2003/09/15
% Copyright (c) 2003 by Johannes Peham
%
% Reference:
% [1] J. Mateo, P. Laguna, Analysis of Heart Rate Variability in Presence
%      of Ectopic Beats Using the Heart Timing Signal
%     IEEE Transactions on biomedical engineering,
%      Vol.50, No.3, March 2003
%
%
% This library is free software; you can redistribute it and/or
% modify it under the terms of the GNU Library General Public
% License as published by the Free Software Foundation; either
% Version 2 of the License, or (at your option) any later version.
%
% This library 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
% Library General Public License for more details.
%
% You should have received a copy of the GNU Library General Public
% License along with this library; if not, write to the
% Free Software Foundation, Inc., 59 Temple Place - Suite 330,
% Boston, MA  02111-1307, USA.


%Input Arguments
   if length(QRStime)<2, error('beat sequence too short'); end;
   if length(ectb_times)<1, error('no ectopic beats to correct'); end;
   
%Conversion into row vectors
   QRStime=QRStime(:)';
   ectb_times=ectb_times(:)';
   
%Time Series
   t=QRStime;

%Indices of the ectopic beats in ke_all
%  ke_all relates to the time series t
   for i=1:length(ectb_times)
      ke_all(i) = find(t==ectb_times(i));
   end;

% Instantaneous heart period hp
   for k=2:length(t)
      hp(k)=(t(k)-t(k-1));
   end
   hp(1)=NaN;
   hp_mean=mean(hp)

%heart period without ectopic beats
   hpD=hp;
   hpD(ke_all)=[];

%Making a time series ti
% without the ectopic beat occurence times
   ti=t;
   ti(ke_all)=[];


%**************************************************%    
% Are ectopic beats consecutive?
%**************************************************%    
   j=1;
   n_all=ones(1,length(ke_all)); %number of consecutive ectopic beats
   while j<length(ke_all)
      while ((j<=length(ke_all)-1)&((ke_all(j+1)-ke_all(j))==1))
         ke_all(j)=[]; %deletion of consecutive indices
         n_all(j)=n_all(j)+1;
      end;
      j=j+1;
   end;
   n_all(length(ke_all)+1:end)=[];

%Initialising the structure for truncation
   trunc.t=[];
   trunc.hp=[];
   trunc.ke_all=[];
   trunc.n_all=[];
 
%if ect. beats are at the end they will be truncated
   if ke_all(end)==length(t)
      trunc.t=(ke_all(end)-n_all(end)+1:ke_all(end));
      trunc.hp=(ke_all(end)-n_all(end)+1:ke_all(end));
      trunc.ke_all=length(ke_all);
      trunc.n_all=length(n_all);
   end;
 
% if ectopic beats are at the beginning they will be truncated
   if (ke_all(1)+1-n_all(1))==1
      trunc.t=[trunc.t (ke_all(1)+1-n_all(1):ke_all(1))];
      trunc.hp=[trunc.hp (ke_all(1)+1-n_all(1):ke_all(1))];
      trunc.ke_all=[trunc.ke_all (1)];
      trunc.n_all=[trunc.n_all (1)];
      ke_all=ke_all - n_all(1);    
   end;

%Truncation
   if length(trunc.t)~=0, t(trunc.t)=[];end;
   hp(trunc.hp)=[];
   ke_all(trunc.ke_all)=[];
   n_all(trunc.n_all)=[];

%**************************************************%
% Spline interpolation of the heart period hp
%**************************************************%
   N=1*length(t);
   ts=(t(end)-t(2))/(N-1);
   t_hpD=t(2):ts:t(end);
   hp(1)=[];
   hpD(1)=[];
   hpD=spline(ti(2:end),hpD,t_hpD);
 
%Initialisation of the forward an backward extended
% virtual beat times (cell-array)
   tb={};
   tf={};

%**************************************************%
% Calculating the real offset sD 
%    referring to the indices after every ectopic beat
%**************************************************%
   for j=1:length(ke_all)
      ke=ke_all(j);

   %**************************************************%
   % virtual beat times
   %**************************************************%
   %forward extended
      tf{j}(1)=t(ke-n_all(j)) + hpD(ke-n_all(j));
      n=1;
      while ((tf{j}(n) < t(ke+1))&((ke + (n+1) -n_all(j)) <= length(hpD)))
         n=n+1;
         tf{j}(n) = tf{j}(n-1) + hpD(ke + n -n_all(j));
      end;    

   %backward extended
      tb{j}(1)=t(ke+1) - hpD(ke+1);
      n=1;
      while ((tb{j}(n) > t(ke-n_all(j)))&((ke - (n+1) + 1) <= length(hpD)))
         n=n+1;
         tb{j}(n) = tb{j}(n-1) - hpD(ke - n + 1); 
      end;    
 
   %**************************************************%
   % calculating sD
   %**************************************************%
   % sD % see Documentation for details
      bn=t(ke-n_all(j));
      an=t(ke+1);
      if (length(tf{j})>=2), b=tf{j}(end-1);
      else b=tf{j}(end); end;
      if (length(tb{j})>=2), a=tb{j}(end-1);
      else a=tb{j}(end); end;

      if length(tf{j})<= 2
         tf_1 = bn;
      else 
         tf_1 = tf{j}(end-2);
      end;

      if length(tb{j}) <= 2
         tb_1 = an;
      else 
         tb_1 = tb{j}(end-2);
      end;
 
      xf = (b-a)/(b-tf_1);
      xb = (b-a)/(tb_1-a);
 
      rectangle = ((b-a)*((length(tf{j})-2) + 1 + (length(tb{j})-2)));
      triangle1 = ((b-a)*xf/2);
      triangle2 = ((b-a)*xb/2);
      A = rectangle - triangle1 - triangle2;
 
      sD(j) = (1/(b - a)) * A
 
   end; % all ect. beats calculated (while)

%**************************************************%
% Calculating T 
%**************************************************%
   T = (t(end)-t(1))/(length(t)-1-sum(n_all)+sum(sD))

%**************************************************%
% Calculating ht
%**************************************************%
   k_ht=[];
%Calculating ht before the first ectopic beat
   for k=1:ke_all(1)-n_all(1)
      ht(k) = t(1) + k*T-t(k);
   end;

%Calculating the sections after the first ectopic beat
   for j=1:length(ke_all)
      ke=ke_all(j);

      for k=ke:length(t)
         ht(k) = t(1) + (k-sum(n_all(1:j))+sum(sD(1:j)))*T - t(k);
      end;
      k_ht=[k_ht (ke-n_all(j)+1:ke)]; %identify the positions of the ectopic beats

   end;
   ht(k_ht)=[];%deleting the ectopic beats, because formula for ht is only valid 
               %  for not ectopic positions (k<ke)&(k>ke) see [1]
   
%**************************************************%
% spline interpolation of ht, resampling
%**************************************************%
   ht_non_resampled=ht;
   N=1*length(t);
   ts=(t(end)-t(1))/(N-1)
   t_hti=t(1):ts:t(end);
   hti=spline(ti,ht,t_hti);
   ht.data=hti;
   ht.time=t_hti; %after resampling ht has an own time series
   
%**************************************************%
% Calculating the derivative of the heart timing signal
% m = d(ht)/dt
%**************************************************%
   m = diff(hti);

%**************************************************%
% Calculating the instantaneous heart rate
%**************************************************%
   r = (1 + m) / T;

return;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本怡春院一区二区| 99国产一区二区三精品乱码| 国内精品久久久久影院色| 高清成人在线观看| 欧美精品精品一区| 欧美激情一区在线观看| 日本欧美韩国一区三区| 91视频免费观看| 久久精品一区蜜桃臀影院| 亚洲国产精品久久不卡毛片| 国产成人丝袜美腿| 亚洲欧洲av另类| 黄网站免费久久| 欧美精品久久久久久久多人混战| 中文字幕一区二区三区在线观看| 青青草97国产精品免费观看无弹窗版 | av一区二区不卡| 精品久久人人做人人爰| 一二三区精品视频| www.亚洲精品| 欧美国产激情一区二区三区蜜月| 免费人成黄页网站在线一区二区 | 国产一区二区三区四区五区美女 | 99久久国产综合色|国产精品| 日韩你懂的在线观看| 五月婷婷激情综合| 欧美在线你懂得| 一区二区三区不卡视频在线观看| 成人精品视频一区| 国产精品日产欧美久久久久| 国产乱对白刺激视频不卡| 精品国产123| 国产自产v一区二区三区c| 欧美va在线播放| 久久av资源站| 精品少妇一区二区三区在线视频| 免费人成网站在线观看欧美高清| 91精品蜜臀在线一区尤物| 五月天欧美精品| 欧美一级高清片| 另类的小说在线视频另类成人小视频在线 | 国产福利91精品| 国产香蕉久久精品综合网| 国产成人自拍高清视频在线免费播放| xf在线a精品一区二区视频网站| 久久精品国产一区二区三| 欧美一区二区三区白人| 不卡电影一区二区三区| 亚洲视频一二三区| 欧美在线观看一区二区| 日韩精品视频网| 亚洲精品一区二区三区蜜桃下载| 国产在线乱码一区二区三区| 欧美精品一区二区三区很污很色的 | 欧美日韩国产免费| 美女脱光内衣内裤视频久久网站| 日韩午夜中文字幕| 国产精品资源站在线| 亚洲欧洲精品一区二区精品久久久| 91同城在线观看| 日韩成人精品在线观看| 久久久99精品免费观看不卡| www.欧美精品一二区| 亚洲一卡二卡三卡四卡无卡久久| 欧美精品v日韩精品v韩国精品v| 久热成人在线视频| 亚洲欧美福利一区二区| 91精品国产综合久久精品app| 国产主播一区二区三区| 亚洲情趣在线观看| 日韩无一区二区| 不卡在线视频中文字幕| 日韩av一区二| 国产精品久久久久久久久免费丝袜 | 国产成人亚洲综合a∨猫咪| 中文字幕综合网| 2014亚洲片线观看视频免费| 91美女在线视频| 久久成人免费网| 亚洲最大色网站| 国产欧美精品一区二区三区四区| 在线看日本不卡| 国产精品一二三在| 天天免费综合色| 亚洲视频在线一区| 精品sm捆绑视频| 555夜色666亚洲国产免| 91小宝寻花一区二区三区| www.一区二区| 极品少妇一区二区| 亚洲成av人片一区二区三区| 日本一区二区成人在线| 日韩欧美一区二区在线视频| 色综合久久久久久久久久久| 精品无人码麻豆乱码1区2区| 亚洲电影在线免费观看| 亚洲日穴在线视频| 久久精品视频一区| 精品国产三级a在线观看| 欧美美女网站色| 色哟哟亚洲精品| 91女厕偷拍女厕偷拍高清| 国产精品538一区二区在线| 日本美女一区二区三区视频| 亚洲午夜免费视频| 亚洲理论在线观看| 亚洲色图视频网| 国产精品国产三级国产三级人妇| 久久一区二区三区国产精品| 91精品国产综合久久蜜臀| 欧美日本免费一区二区三区| 91久久精品一区二区二区| 91亚洲精品乱码久久久久久蜜桃| 高清不卡在线观看| 国产精品1区2区| 国产91精品免费| 成人短视频下载| 成人深夜在线观看| 成人av免费观看| 99v久久综合狠狠综合久久| 丰满亚洲少妇av| 99国产精品久久久久久久久久久| 成人黄动漫网站免费app| 国产91在线|亚洲| 99国产精品久久久久久久久久久| 91网站视频在线观看| 在线视频综合导航| 欧美乱妇23p| 欧美成人一区二区三区在线观看| 91精品国产福利在线观看| 日韩一卡二卡三卡四卡| 欧美成人一区二区三区| 26uuu久久综合| 国产精品久久久久久久久久久免费看 | 精品99999| 中文字幕一区二区三区在线播放 | av不卡免费在线观看| 91美女福利视频| 在线播放91灌醉迷j高跟美女| 日韩欧美国产电影| 欧美国产1区2区| 亚洲午夜激情网站| 六月丁香婷婷久久| 成人av动漫在线| 欧美日韩亚洲高清一区二区| 日韩精品中文字幕一区二区三区| 久久亚区不卡日本| 亚洲女同一区二区| 日本不卡一区二区三区高清视频| 久草中文综合在线| 99久久婷婷国产精品综合| 欧美日韩第一区日日骚| 久久美女艺术照精彩视频福利播放| 中文字幕电影一区| 丝瓜av网站精品一区二区| 国产乱码精品一区二区三区忘忧草| 色综合色综合色综合色综合色综合 | 国产亚洲欧美日韩在线一区| 亚洲你懂的在线视频| 免费一级片91| 色综合色综合色综合| 久久久久久一级片| 亚洲6080在线| 9久草视频在线视频精品| 91精品蜜臀在线一区尤物| 一区二区中文视频| 在线免费亚洲电影| 国产亚洲精品精华液| 日韩1区2区日韩1区2区| va亚洲va日韩不卡在线观看| 日韩欧美国产综合一区| 一区二区三区欧美亚洲| 高清久久久久久| 精品国产免费人成在线观看| 亚洲精品乱码久久久久久| 国产一区 二区 三区一级| 欧美老女人第四色| 中文字幕中文字幕一区| 久久成人18免费观看| 欧美三日本三级三级在线播放| 亚洲国产精品成人综合色在线婷婷| 亚洲大片免费看| 色天天综合久久久久综合片| 国产三级一区二区| 久久国产福利国产秒拍| 在线不卡免费av| 一区二区三区欧美日| 成人a区在线观看| 国产色产综合色产在线视频| 久久99精品国产.久久久久 | 337p日本欧洲亚洲大胆精品 | 亚洲人精品午夜| 懂色中文一区二区在线播放| 欧美mv和日韩mv的网站| 轻轻草成人在线| 欧美一级专区免费大片| 日韩精品乱码av一区二区| 欧美日韩国产精选| 亚洲制服丝袜av| 欧美丝袜丝交足nylons图片|