OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WEEG2Segment Class Reference

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< WEEGValueMatrixgetValues (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< WPagerEEGm_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...
 

Detailed Description

Class which contains one segment of an EEG recording, read from a WPagerEEG.

Definition at line 41 of file WEEG2Segment.h.

Constructor & Destructor Documentation

◆ WEEG2Segment()

WEEG2Segment::WEEG2Segment ( std::size_t  segmentID,
std::shared_ptr< WPagerEEG pager 
)

Constructor.

Parameters
segmentIDnumber of this segment
pagerpager 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.

Member Function Documentation

◆ getNumberOfSamples()

std::size_t WEEG2Segment::getNumberOfSamples ( ) const

Get the number of samples this segment consists of.

Returns
number of samples

Definition at line 61 of file WEEG2Segment.cpp.

References m_nbSamples.

◆ getValues()

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.

Parameters
startstart sample of the sample range
lengthlength of the sample range
Returns
matrix of values

Definition at line 66 of file WEEG2Segment.cpp.

References m_pager, and m_segmentID.

Member Data Documentation

◆ m_nbSamples

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().

◆ m_pager

std::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().

◆ m_segmentID

std::size_t WEEG2Segment::m_segmentID
private

number of this segment

Definition at line 71 of file WEEG2Segment.h.

Referenced by getValues(), and WEEG2Segment().


The documentation for this class was generated from the following files: