Closed briangow closed 1 year ago
That's because wrsamp re-scales the samples; in this case, it picks a new adc_gain
and baseline
in order to fit the provided p_signal
values into a 12-bit range.
I don't know exactly how this is done, but you would only expect the checksum
to match if the d_signal
values match (which would be the case if the adc_gain
and baseline
likewise match.)
Ok, thanks for the explanation.
Simply reading an entire WFDB record and writing it without making any changes should result in a consistent checksum. However this is not the case with
wrsamp
(in v4.0.0).