Closed cx1111 closed 8 years ago
Aside from creating a map of nans for different formats, I changed the way byte offset format signals are converted into physical units.
Old: baseline=baseline+constant so when doing val=(val-baseline)/gain, you're actually subtracting the constant and getting the right value.
baseline=baseline+constant
val=(val-baseline)/gain
New chosen:
val=val-constant
This gives an extra subtraction calculation/computation but is technically correct.
New alternate option:
This is faster but the key-value pairs for wfdbnan will be technically incorrect for format 80 and 160 and may confuse people?
Aside from creating a map of nans for different formats, I changed the way byte offset format signals are converted into physical units.
Old:
baseline=baseline+constant
so when doingval=(val-baseline)/gain
, you're actually subtracting the constant and getting the right value.New chosen:
val=val-constant
val=(val-baseline)/gain
.This gives an extra subtraction calculation/computation but is technically correct.
New alternate option:
This is faster but the key-value pairs for wfdbnan will be technically incorrect for format 80 and 160 and may confuse people?