void setgvmode(int *mode)
This function sets the mode used by getvec
when reading a
multi-frequency record (see section Multi-Frequency Records). If mode is
DB_LOWRES
, getvec
decimates any signals sampled at multiples of
the frame rate, so that one sample is returned per signal per frame (i.e., the
oversampled signals are resampled by simple averaging of the samples for each
signal within each frame). If mode is DB_HIGHRES
, each sample of
any oversampled signal is returned by successive invocations of getvec
,
and each sample of any signal sampled at a lower frequency is returned by two
or more successive invocations of getvec
(i.e., the less frequently
sampled signals are resampled using zero-order interpolation). getvec
operates in DB_LOWRES
mode by default. DB_LOWRES
and
DB_HIGHRES
are defined in `<ecg/db.h>'.
In DB library version 9.6 and later versions, setgvmode
also affects
how annotations are read and written. If setgvmode(DB_HIGHRES)
is
invoked before using annopen
, dbinit
, getvec
,
sampfreq
, strtim
, or timstr
, then all DB_Time
data (including the time
attributes of annotations read by getann
or written by putann
) visible to the application are in units of the
high-resolution sampling intervals. (Otherwise, DB_Time
data are in
units of frame intervals.)
Go to the first, previous, next, last section, table of contents.