.TH HRSTATS 1 "6 April 2012" "WFDB 10.5.11" "WFDB Applications Guide" .SH NAME hrstats \- collect and summarize heart rate statistics from an annotation file .SH SYNOPSIS \fBhrstats -r\fR \fIrecord\fR \fB-a\fR \fIannotator\fR [ \fIoptions\fR ... ] .SH DESCRIPTION \fBhrstats\fR reads the annotation file specified by \fIrecord\fR and \fIannotator\fR and produces a uniformly sampled and smoothed instantaneous heart rate signal, using the IPFM model as originally implemented in tach.c. In this context, heart rate (HR) is defined as ten times the number of beat-to-beat (RR) intervals (and fractional intervals) within a 6-second HR measurement window, including intervals beginning and/or ending with ectopic beats, and RR intervals are defined by the locations of consecutive beat annotations in the annotation file. .PP The first HR window starts at the beginning of the first RR interval in the record and ends 6 seconds later. Subsequent HR windows begin at 1-second intervals following the first, i.e, they overlap by 5/6 (83.33%). HR windows that contain part or all of a very long (>3 sec) or very short (<0.2 sec) interval are discarded. All others are used to generate HR measurements that are accumulated in a histogram with 1 bpm bins. .PP When all intervals have been processed, summary statistics calculated from the histogram are written to the standard output and to a WFDB '.info' file, in this format: .IP