OpenWalnut
1.4.0
|
Class which contains one segment of an EEG recording, read from a WPagerEEG. More...
#include <WEEG2Segment.h>
Public Member Functions | |
WEEG2Segment (std::size_t segmentID, boost::shared_ptr< WPagerEEG > pager) | |
Constructor. | |
std::size_t | getNumberOfSamples () const |
Get the number of samples this segment consists of. | |
boost::shared_ptr < WEEGValueMatrix > | getValues (std::size_t start, std::size_t length) const |
Get the values of all channels for a given sample range. | |
Private Attributes | |
std::size_t | m_segmentID |
number of this segment | |
boost::shared_ptr< WPagerEEG > | m_pager |
pager class which contains the data, read from a file on demand | |
std::size_t | m_nbSamples |
number of samples this segment consists of |
Class which contains one segment of an EEG recording, read from a WPagerEEG.
Definition at line 41 of file WEEG2Segment.h.
WEEG2Segment::WEEG2Segment | ( | std::size_t | segmentID, |
boost::shared_ptr< WPagerEEG > | pager | ||
) |
Constructor.
segmentID | number of this segment |
pager | pager class which contains the data, read from a file on demand |
Definition at line 39 of file WEEG2Segment.cpp.
References m_nbSamples, m_pager, m_segmentID, and WRecording::MAX_RECORDING_SAMPLES.
std::size_t WEEG2Segment::getNumberOfSamples | ( | ) | const |
Get the number of samples this segment consists of.
Definition at line 62 of file WEEG2Segment.cpp.
References m_nbSamples.
boost::shared_ptr< WEEGValueMatrix > WEEG2Segment::getValues | ( | std::size_t | start, |
std::size_t | length | ||
) | const |
Get the values of all channels for a given sample range.
start | start sample of the sample range |
length | length of the sample range |
Definition at line 67 of file WEEG2Segment.cpp.
References m_pager, and m_segmentID.
std::size_t WEEG2Segment::m_nbSamples [private] |
number of samples this segment consists of
Definition at line 73 of file WEEG2Segment.h.
Referenced by getNumberOfSamples(), and WEEG2Segment().
boost::shared_ptr< WPagerEEG > WEEG2Segment::m_pager [private] |
pager class which contains the data, read from a file on demand
Definition at line 72 of file WEEG2Segment.h.
Referenced by getValues(), and WEEG2Segment().
std::size_t WEEG2Segment::m_segmentID [private] |
number of this segment
Definition at line 71 of file WEEG2Segment.h.
Referenced by getValues(), and WEEG2Segment().