• 大小: 3.05MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-14
  • 语言: 其他
  • 标签:

资源简介

读取心电图的,PhysioBank公司的软件包,包含WFDB library、WFDB applications、WAVE 还有WFDB Applications Guide和WFDB Programmer‘s Guide

资源截图

代码片段和文件信息

/* file: ann2rr.c		G. Moody	 16 May 1995
Last revised:  30 October 2008
-------------------------------------------------------------------------------
ann2rr: Calculate RR intervals from an annotation file
Copyright (C) 2003 George B. Moody

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. 59 Temple
Place - Suite 330 Boston MA 02111-1307 USA.

You may contact the author by e-mail (george@mit.edu) or postal mail
(MIT Room E25-505A Cambridge MA 02139 USA).  For updates to this software
please visit PhysioNet (http://www.physionet.org/).
_______________________________________________________________________________
*/

#include 
#ifndef __STDC__
extern void exit();
#endif

#include 
#define map1
#define map2
#define ammap
#define mamap
#define annpos
#include 

char *pname;

main(argc argv)
int argc;
char *argv[];
{
    char *record = NULL rrfstr[8] t0fstr[8] t1fstr[8] *prog_name();
    double sps spm sph;
    int Aflag = 0 a0 a0flag = 0 a1 a1flag = 0
cflag = 0 i  j pflag = 0 previous_annot_valid = 0 rrdigits = 3
rrformat = 0 t0digits = 3 t0flag = 0 t0format = 0 t1digits = 3
t1flag = 0 t1format = 0;
    long atol();
    static char a0f[ACMAX+1] a1f[ACMAX+1];
    static WFDB_Anninfo ai;
    static WFDB_Annotation annot;
    static WFDB_Time from to rr t0 t1;
    void help();

    pname = prog_name(argv[0]);

    /* Interpret command-line options. */
    for (i = a0f[0] = a1f[0] = 1; i < argc; i++) {
if (*argv[i] == ‘-‘) switch (*(argv[i]+1)) {
  case ‘a‘: /* annotator follows */
    if (++i >= argc) {
(void)fprintf(stderr “%s: annotator must follow -a\n“
      pname);
exit(1);
    }
    ai.name = argv[i];
    break;
  case ‘A‘: /* print intervals between annotations of all types */
    Aflag = 1;
    break;
  case ‘c‘:     /* print intervals between consecutive valid
   annotations only */
    cflag = 1;
    break;  
  case ‘f‘: /* starting time follows */
    if (++i >= argc) {
(void)fprintf(stderr “%s: starting time must follow -f\n“
      pname);
exit(1);
    }
    from = i;   /* to be converted to sample intervals below */
    break;
  case ‘h‘: /* print usage summary and quit */
    help();
    exit(0);
    break;
  case ‘i‘: /* specify interval output format */
    if (++i >= argc || *(argv[i]) == ‘-‘) {
(void)fprintf(stderr
      “%s: interval output for

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        941  2008-04-11 03:53  wfdb-10.4.12\checkpkg\checkfile

     文件        349  2007-12-28 01:09  wfdb-10.4.12\checkpkg\Makefile.tpl

     文件       2813  2006-02-28 00:53  wfdb-10.4.12\checkpkg\libcheck

     文件       1701  2001-09-07 23:35  wfdb-10.4.12\checkpkg\Makefile.top

     文件      10283  2009-01-21 12:15  wfdb-10.4.12\checkpkg\Makefile

     文件        435  2001-09-11 05:45  wfdb-10.4.12\checkpkg\input\sumstats

     文件        192  2001-09-11 05:55  wfdb-10.4.12\checkpkg\input\100x.hea

     文件        148  2001-09-11 00:07  wfdb-10.4.12\checkpkg\input\ecgeval

     文件         37  2001-08-16 03:17  wfdb-10.4.12\checkpkg\input\xform

     文件        489  2001-10-09 07:03  wfdb-10.4.12\checkpkg\expected\xform.hea

     文件        653  2001-09-10 12:22  wfdb-10.4.12\checkpkg\expected\wfdbdesc.out

     文件      10918  2009-01-17 02:11  wfdb-10.4.12\checkpkg\expected\pschart.ps

     文件        150  2001-09-10 11:23  wfdb-10.4.12\checkpkg\expected\100s.a2r

     文件       5400  2001-09-11 02:23  wfdb-10.4.12\checkpkg\expected\snip.dat

     文件         94  2001-09-11 02:59  wfdb-10.4.12\checkpkg\expected\fir.hea

     文件        186  2008-01-15 06:40  wfdb-10.4.12\checkpkg\expected\100s.qrs

     文件        255  2001-09-11 21:11  wfdb-10.4.12\checkpkg\expected\100x.hea

     文件          4  2001-09-10 12:26  wfdb-10.4.12\checkpkg\expected\sampfreq.out

     文件        124  2001-09-11 04:50  wfdb-10.4.12\checkpkg\expected\wfd00002.hea

     文件        104  2002-11-23 03:24  wfdb-10.4.12\checkpkg\expected\100w.hea

     文件       1234  2001-08-16 03:42  wfdb-10.4.12\checkpkg\expected\xform-2.out

     文件         32  2001-09-11 21:12  wfdb-10.4.12\checkpkg\expected\xform-1.out

     文件         17  2001-09-10 11:16  wfdb-10.4.12\checkpkg\expected\sigamp.out

     文件        100  2001-09-10 12:23  wfdb-10.4.12\checkpkg\expected\sumann.out

     文件       1148  2002-01-16 04:26  wfdb-10.4.12\checkpkg\expected\ihr.out

     文件        941  2001-09-10 11:15  wfdb-10.4.12\checkpkg\expected\tach.out

     文件        230  2004-12-14 13:13  wfdb-10.4.12\checkpkg\expected\100s.mrg

     文件         14  2001-09-11 02:23  wfdb-10.4.12\checkpkg\expected\snip.atr

     文件         17  2001-09-11 04:53  wfdb-10.4.12\checkpkg\expected\wfdbwhich.out

     文件        861  2001-12-12 01:52  wfdb-10.4.12\checkpkg\expected\bxb.out

............此处省略550个文件信息

评论

共有 条评论

相关资源