Closed opterix closed 8 years ago
So it's not a bug with the matlab code, it's just a result of how the c code from the original wfdb software package was written. Description: "produces a uniformly sampled and smoothed instantaneous heart rate signal. Smoothing is accomplished by finding the number of fractional R-R intervals within a window (with a width of two output sample intervals) centered on the current output sample."
So it's rather difficult to provide a smoothed instantaneous heart rate for the very first window given that there are no samples are time t<0. I assume it will try to estimate it based on the next window or vice versa, hence the first 2 HRs being the same.
When using tach function, the first two measures are always equal. I tried for several signals and I got that result. It seems very odd. Example: