[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
WFDB_Date strdat(char *string) |
This function converts string into a Julian date. The argument
should be in the format used by datstr
; if string is
improperly formatted, strdat
returns zero. Note that dates such
as `15/3/89' refer to the first century A.D., not the twentieth.
For example, the interval in days between the events commemorated by the
French and American national holidays is strdat("14/7/1789")
--
strdat("4/7/1776")
.
The next four functions convert between analog-to-digital converter
(ADC) units and physical units, using as a conversion factor the gain
for the specified input signal. The first two (aduphys
and
physadu
) are general-purpose functions that convert absolute
levels (i.e., they account for non-zero baseline
values); the
last two (adumuv
and muvadu
) are for use with
millivolt-dimensioned signals only, and convert potential differences
(i.e., adumuv(s, 0)
= muvadu(s, 0)
= 0 for all
s, irrespective of the baseline
values specified in the
header file). Normally, these functions should be invoked after
isigopen
or wfdbinit
, either of which will determine the
gain from the `hea' file. If this is not done, or if the
header file indicates that the gain is uncalibrated, or if the
specified input signal is not currently open, a gain of WFDB_DEFGAIN
(defined in `<wfdb/wfdb.h>') ADC units per millivolt, and a baseline
of zero, are assumed. If the physical units
(see section 3.1 Signal Information Structures)
are not millivolts, adumuv
and muvadu
convert to and from
thousandths of the defined physical units. Note that adumuv
and
muvadu
deal exclusively with integers, but aduphys
returns
and physadu
accepts double-precision floating point physical
values.