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

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

Get a single Sample (physical units)

[in]channel_idxchannel index
[in]sample_idxsample index

Reimplemented from gdf::Reader.

Definition at line 115 of file Modifier.cpp.

References gdf::Reader::findRecord(), gdf::Record::getChannel(), gdf::Reader::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