长安英文网站建设,关于加强门户网站建设的通知,vue大型网站开发吗,仿系统之家网站源码EDF同EDF的区别
1#xff1a;EDF 允许将多个非连续记录存储到一个文件中。这是与EDF唯一不兼容的地方。
2#xff1a;EDF 标头记录可识别患者并根据 EDF 规范指定记录信号的技术特征#xff0c;但第一个“保留#xff08;reserved#xff09;”字段#xff08;44 个字符… EDF同EDF的区别
1EDF 允许将多个非连续记录存储到一个文件中。这是与EDF唯一不兼容的地方。
2EDF 标头记录可识别患者并根据 EDF 规范指定记录信号的技术特征但第一个“保留reserved”字段44 个字符除外。-------------保留字段内容不同
3如果记录不间断“保留reserved”字段则必须以“EDFC”开头因此具有连续的数据记录即每个数据记录的开始时间与前一个数据记录的结束时间开始时间 持续时间一致。如果记录中断“保留(reserved)”字段必须以“EDFD”开头因此并非所有数据记录都是连续的。
4EDF的“版本(version)”字段必须仍然像EDF一样读0 。EDF软件将从上述“保留(reserved)”字段中知道连续文件和不连续文件之间的区别。
5“普通信号ordinary signal”一系列 2 字节样本后续样本表示该信号的后续整数值以相等的时间间隔进行采样。
6EDF数据记录包含根据EDF规范包括61440的大小限制的普通信号但数据记录可以无条件地短于1s后续数据记录不需要形成连续记录。
7EDF中普通信号的样本在每个数据记录包内必须具有相等的采样间隔但到下一个数据记录包的第一个样本的间隔可能不同。
8极端情况下若每个普通信号在每个数据记录中仅占用一个样本或文件是不连续的EDFD则将“数据记录的持续时间duration of a data record”指定为 0。
9EDF中在header头部分仅使用字节值为 32到126 的可打印 US-ASCII 字符。
10标题中的“开始日期startdate”和“开始时间starttime”字段应仅包含字符0-9并将句点.作为分隔符例如“02.08.51”。在“开始日期startdate”中使用1985年作为剪辑日期以避免Y2K问题。因此1985-1999 年必须用 yy85-99 表示2000-2084 年必须用 yy00-84 表示。2084年之后yy必须是“yy”。
11“本地患者标识local patient identification”字段必须以子字段开头子字段不包含空格但用空格分隔子字段任何空格都必须替换为其他字符例如下划线。
12 “数字最大值Digital maximum”必须大于“数字最大值Digital minimum”。在负放大器增益的情况下相应的“物理最大值Physical maximum”小于“物理最大值Physical minimum”。
13普通信号样本2 字节 2 的补码整数必须以“小端序little-endian”格式存储即最低有效字节优先。这是 PC 应用程序中的默认格式。
14旧的EDF软件只会将此“EDF注释EDF Annotations”信号视为奇怪的普通信号。
15即使不保留注释EDF文件也必须至少包含一个“EDF Annotations”信号以便指定每个数据记录的开始时间见第2.2.4节。当然label中的“EDF Annotations”标签不允许用于普通信号。标头中的“每个数据记录中的样本数nr of samples in each data record”字段指定该“EDF Annotations”信号在每个数据记录中占多少2字节整数。
16“EDF Annotations”信号只有有意义的标题字段“label”和“nr of samples in each data record每个数据记录中的样本数量”。为了与EDF兼容字段“数字最小值digital minimum”和“数字最大值digital maximum”必须分别填写-32768和32767。“物理最大值Physical maximum”和“物理最小值Physical minimum”字段必须包含彼此不同的值。该信号的其他字段用空格填充。
17在时间戳之后可能会出现所有共享相同发病时间和持续时间的注释列表。每个注释后面都有一个单独的并且可能不包含任何。一个字节字节值为0的不可打印ASCII字符跟在该TAL最后的后面。所以TAL以 结尾后面跟着。
18每个事件只被注释一次即使它的持续时间使它扩展到其他数据记录的时间段。
19“EDF注释EDF Annotations”数据记录通道的其余部分未使用字节也用字节填充。
20“EDF注释信号EDF Annotations signal”通道中TAL时间戳信息以 结尾后面跟着。多个TAL则紧跟上一TAL的。
21因此每个数据记录中第一个“EDF Annotations”信号的第一个注释为空但其时间戳指定数据记录在文件开始日期/时间之后的秒数。
如果数据记录中的第一个 TAL 读取“567”则该数据记录在文件的开始日期/时间后 567 秒开始。
如果数据记录包含“普通信号ordinary signals”则每个数据记录的开始时间必须是其信号的开始时间。例如3456.789R-wav’表示此数据记录在发生 R 波时开始即文件启动后 3456.789 秒。
22文件的开始日期/时间在EDF标题字段“录制开始日期startdate of recording”和“录制开始时间starttime of recording”中指定。这些字段必须指示第一个数据记录的开头所在的绝对秒。因此第一个数据记录中的第一个 TAL 始终以 0.X 开头。两个空格。 Length in bytes BDF Header: EDF Header: EDF Description Description EDF 8 bytes Byte 1: 255 (non ascii) Byte 1: 0 (ASCII) version of this data format (0) Identification code Bytes 2-8 : BIOSEMI (ASCII) Bytes 2-8 : (ASCII) 80 bytes User text input (ASCII) local patient identification (mind item 3 of the additional EDF specs) Local subject identification 80 bytes User text input (ASCII) local recording identification (mind item 4 of the additional EDF specs) Local recording identification 8 bytes dd.mm.yy (ASCII) startdate of recording (dd.mm.yy) (mind item 2 of the additional EDF specs) Startdate of recording 8 bytes hh.mm.ss (ASCII) starttime of recording (hh.mm.ss) Starttime of recording 8 bytes (ASCII) number of bytes in header record Number of bytes in header record 44 bytes 24BIT (ASCII) BIOSEMI (ASCII) reserved Version of data format. EDFD EDFC 8 bytes (ASCII) number of data records (-1 if unknown, obey item 10 of the additional EDF specs) Number of data records -1 if unknown 8 bytes e.g.: 1 (ASCII) duration of a data record, in seconds Duration of a data record, in seconds 4 bytes e.g.: 257 or 128 (ASCII) number of signals (ns) in data record Number of channels (N) in data record N x 16 bytes e.g.: Fp1, Fpz, Fp2, etc (ASCII) Labels of the channels N x 80 bytes e.g.: active electrode, respiration belt (ASCII) Transducer type N x 8 bytes e.g.: uV, Ohm (ASCII) Physical dimension of channels N x 8 bytes e.g.: -262144 (ASCII) e.g.: -32768 (ASCII) Physical minimum in units of physical dimension N x 8 bytes e.g.: 262143 (ASCII) e.g.: 32767 (ASCII) Physical maximum in units of physical dimension N x 8 bytes e.g.: -8388608 (ASCII) e.g.: -32768 (ASCII) Digital minimum N x 8 bytes e.g.: 8388607 (ASCII) e.g.: 32767 (ASCII) Digital maximum N x 80 bytes e.g.: HP:DC; LP:410 e.g.: HP:0,16; LP:500 Prefiltering N x 8 bytes For example: 2048 (ASCII) Number of samples in each data record (Sample-rate if Duration of data record 1) N x 32 bytes (ASCII) Reserved Byte in file Which part of 24 bit Which channel Which sample of data record Which data record 1 2 3 Byte 1 Byte 2 Byte 3 Channel 1 1 Duration of data set has been set to 1. So this block will be filled with (1x2048) samples from only Channel 1 1 4 5 6 Byte 1 Byte 2 Byte 3 Channel 1 2 7 8 9 Byte 1 Byte 2 Byte 3 Channel 1 3 etc.Channel 1: sample 4 to sample 2045 6136 6137 6138 Byte 1 Byte 2 Byte 3 Channel 1 2046 6139 6140 6141 Byte 1 Byte 2 Byte 3 Channel 1 2047 6142 6143 6144 Byte 1 Byte 2 Byte 3 Channel 1 2048 6145 6146 6147 Byte 1 Byte 2 Byte 3 Channel 2 1 Duration of data set has been set to 1. So this block will be filled with (1x2048) samples from only Channel 2 6148 6149 6150 Byte 1 Byte 2 Byte 3 Channel 2 2 6151 6152 6153 Byte 1 Byte 2 Byte 3 Channel 2 3 etc.Channel 2: sample 4 to sample 2045 12280 12281 12282 Byte 1 Byte 2 Byte 3 Channel 2 2046 12283 12284 12285 Byte 1 Byte 2 Byte 3 Channel 2 2047 12286 12287 12288 Byte 1 Byte 2 Byte 3 Channel 2 2048 etc.Channel 03: sample 1 to sample 2048Channel 04: sample 1 to sample 2048Channel 05: sample 1 to sample 2048Channel 06: sample 1 to sample 2048Channel 07: sample 1 to sample 2048Channel 08: sample 1 to sample 2048Channel 09: sample 1 to sample 2048Channel 10: sample 1 to sample 2048Channel 11: sample 1 to sample 2048Channel 12: sample 1 to sample 2048Channel 13: sample 1 to sample 2048Channel 14: sample 1 to sample 2048Channel 15: sample 1 to sample 2048 This block will be filled with (13x2048) samples from Channels 3-15 921619216292163 Byte 1 Byte 2 Byte 3 Channel 16 1 This block will be filled with (1x2048) samples from Channel 16 921649216592166 Byte 1 Byte 2 Byte 3 Channel 16 2 921679216892169 Byte 1 Byte 2 Byte 3 Channel 16 3 etc.Channel 16: sample 4 to sample 2045 98296 98297 98298 Byte 1 Byte 2 Byte 3 Channel 16 2046 98299 98300 98301 Byte 1 Byte 2 Byte 3 Channel 16 2047 98302 98303 98304 Byte 1 Byte 2 Byte 3 Channel 16 2048 98305 Byte 1 Trigger LowByte 1 This block will be filled with (1x2048) samples from the Trigger/Status Channel 98306 Byte 2 Trigger HighByte 98307 Byte 3 StatusByte 98308 Byte 1 Trigger LowByte 2 98309 Byte 2 Trigger HighByte 98310 Byte 3 StatusByte 98311 Byte 1 Trigger LowByte 3 98312 Byte 2 Trigger HighByte 98313 Byte 3 StatusByte etc.Trigger/Status Channel: samples 4 to sample 2045 104440 Byte 1 Trigger LowByte 2046 104441 Byte 2 Trigger HighByte 104442 Byte 3 StatusByte 104443 Byte 1 Trigger LowByte 2047 104444 Byte 2 Trigger HighByte 104445 Byte 3 StatusByte 104446 Byte 1 Trigger LowByte 2048 104447 Byte 2 Trigger HighByte 104448 Byte 3 StatusByte 104448 104449 104450 Byte 1 Byte 2 Byte 3 Channel 1 1 This block will be filled with (1x2048) samples from only Channel 1 2 104451 104452 104453 Byte 1 Byte 2 Byte 3 Channel 1 2 etc etc etc etc 举例
The header record contains 8 ascii : version of this data format (0) 0 80 ascii : local patient identification MCH-0234567 F 02-MAY-1951 Haagse_Harry 80 ascii : local recording identification. Startdate 02-MAR-2002 EMG561 BK/JOP Sony. MNC R Median Nerve. 8 ascii : startdate of recording (dd.mm.yy) 17.04.01 8 ascii : starttime of recording (hh.mm.ss). 11.25.00 8 ascii : number of bytes in header record 768 44 ascii : reserved EDFD 8 ascii : number of data records (-1 if unknown) 2 8 ascii : duration of a data record, in seconds 0.050 4 ascii : number of signals (ns) in data record 2 1st signal 2nd signal ns * 16 ascii : ns * label R APB EDF Annotations ns * 80 ascii : ns * transducer type (e.g. AgAgCl electrode) AgAgCl electrodes ns * 8 ascii : ns * physical dimension (e.g. uV) mV ns * 8 ascii : ns * physical minimum (e.g. -500 or 34) -100 -1 ns * 8 ascii : ns * physical maximum (e.g. 500 or 40) 100 1 ns * 8 ascii : ns * digital minimum (e.g. -2048) -2048 -32768 ns * 8 ascii : ns * digital maximum (e.g. 2047) 2047 32767 ns * 80 ascii : ns * prefiltering (e.g. HP:0.1Hz LP:75Hz) HP:3Hz LP:20kHz ns * 8 ascii : ns * nr of samples in each data record 1000 60 ns * 32 ascii : ns * reserved 参考EDF specification
EDF specification
https://www.biosemi.com/faq/file_format.htm