Logo Search packages:      
Sourcecode: libgdf version File versions  Download package

double gdf::Reader::getSample ( uint16  channel_idx,
size_t  sample_idx 

Read a single Sample (physical units)

[in]channel_idxchannel index
[in]sample_idxsample index

Reimplemented in gdf::Modifier.

Definition at line 223 of file Reader.cpp.

References findRecord(), gdf::Record::getChannel(), getRecordPtr(), and gdf::Channel::getSamplePhys().

        Record *r = getRecordPtr( findRecord( channel_idx, sample_idx ) );
        size_t spr = m_header.getSignalHeader_readonly( channel_idx ).get_samples_per_record( );
        return r->getChannel( channel_idx )->getSamplePhys( sample_idx % spr );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index