![]() |
OpenWalnut
1.5.0dev
|
Class which contains one segment of an EEG recording, read from a WPagerEEG. More...
#include <WEEG2Segment.h>
Collaboration diagram for WEEG2Segment:Public Member Functions | |
| WEEG2Segment (std::size_t segmentID, std::shared_ptr< WPagerEEG > pager) | |
| Constructor. More... | |
| std::size_t | getNumberOfSamples () const |
| Get the number of samples this segment consists of. More... | |
| std::shared_ptr< WEEGValueMatrix > | getValues (std::size_t start, std::size_t length) const |
| Get the values of all channels for a given sample range. More... | |
Private Attributes | |
| std::size_t | m_segmentID |
| number of this segment More... | |
| std::shared_ptr< WPagerEEG > | m_pager |
| pager class which contains the data, read from a file on demand More... | |
| std::size_t | m_nbSamples |
| number of samples this segment consists of More... | |
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, |
| std::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 38 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 61 of file WEEG2Segment.cpp.
References m_nbSamples.
| std::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 66 of file WEEG2Segment.cpp.
References m_pager, and m_segmentID.
|
private |
number of samples this segment consists of
Definition at line 73 of file WEEG2Segment.h.
Referenced by getNumberOfSamples(), and WEEG2Segment().
|
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().
|
private |
number of this segment
Definition at line 71 of file WEEG2Segment.h.
Referenced by getValues(), and WEEG2Segment().