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

📄 hrdfa.m

📁 matlab下实现kaplan算法
💻 M
字号:
function [t,v,lab] = hrdfa(times,vals,labels,params)% [t,v,lab] = hrdfa(times,vals,labels,params)% A member of the family of statistics for use in the HRV system% This one calculates the DFA in the manner of CK Peng.% returning a time entry, a value (containing the slow and fast% power law exponents), and a label % (reflecting the fraction of bad beats in the% segment.%% labels should be 1 for good beats, 0 for bad beats.% params is not used?% self documentationif nargin < 3   t = 2; % return the max and min in the segment  v = 2; % return the fast and slow dfa power-law exponents  % contents of the labels --- NOTE ALL MUST BE THE SAME LENGTH  lab = [ 't1=min time      ';          't2=max time      ';          'v1=fast power exp';          'v2=slow power exp';          'lb=frac bad beats'];  return;end[slow,fast] = dfapeng(vals,64,16,4);v = zeros(1,2);v(1) = fast;v(2) = slow;% fraction of vals that are invalidlab = sum(labels)/length(labels);t = [ min(times), max(times) ];

⌨️ 快捷键说明

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