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

void gdf::Writer::addSamplePhys ( const size_t  channel_idx,
const float64  value 

Add sample in physical units to a channel.

The sample value is converted from the channels [physmin,physmax] to the range of [digmin,digmax] and then cast to the correct data type.

[in]channel_idxindex of the channel written to
[in]valuesample value in physical units

Definition at line 249 of file Writer.cpp.

References gdf::RecordBuffer::addSamplePhys().

        if( !m_file.is_open() )
            throw exception::file_not_open( "" );
        m_recbuf.addSamplePhys( channel_idx, value );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index