OpenWalnut
1.4.0
|
Contains EEG recording data. More...
#include <WEEG.h>
Public Member Functions | |
WEEG (const WEEGSegmentArray &data, const WEEGElectrodeLibrary &electrodeLib, const WEEGChannelLabels &channelLabels) | |
Constructs a WEEG object from the give infos. | |
WEEG () | |
Constructor creating a quite unusable instance. | |
const double & | operator() (size_t segment, size_t signal, size_t sample) const |
Access operator for single samples. | |
size_t | getNumberOfSamples (size_t segmentId) const |
Returns number of samples of a given segment. | |
size_t | getNumberOfChannels () const |
Return the number of channels this EEG has. | |
size_t | getNumberOfSegments () const |
Return the number of segments this EEG consists of. | |
std::string | getChannelLabel (size_t channelId) const |
Return the label of a certain channel. | |
WPosition | getChannelPosition (size_t channelId) const |
Return the position of the sensor for a certain channel. | |
virtual bool | isTexture () const |
Determines whether this dataset can be used as a texture. | |
virtual const std::string | getName () const |
Gets the name of this prototype. | |
virtual const std::string | getDescription () const |
Gets the description for this prototype. | |
Static Public Member Functions | |
static boost::shared_ptr < WPrototyped > | getPrototype () |
Returns a prototype instantiated with the true type of the deriving class. | |
Static Protected Attributes | |
static boost::shared_ptr < WPrototyped > | m_prototype = boost::shared_ptr< WPrototyped >() |
The prototype as singleton. | |
Private Attributes | |
double | m_samplingRate |
We have only on sampling rate for all channels. | |
std::map< std::string, size_t > | m_electrodeDescriptions |
Description of electrodes. | |
WEEGElectrodeLibrary | m_electrodeLibrary |
Information about the electrodes. | |
WEEGSegmentArray | m_segments |
Contains the EEG data as an arry of segements of data which consist of an array of electrodes which again consist of an array of samples over time. | |
WEEGChannelLabels | m_channelLabels |
Label for each channel. | |
std::vector< bool > | m_channelEnabled |
Is the channel enabled? |
WEEG::WEEG | ( | const WEEGSegmentArray & | data, |
const WEEGElectrodeLibrary & | electrodeLib, | ||
const WEEGChannelLabels & | channelLabels | ||
) | [explicit] |
Constructs a WEEG object from the give infos.
data | Array of segments |
electrodeLib | Information about the electrodes |
channelLabels | The names of the channels. |
Definition at line 34 of file WEEG.cpp.
References m_channelLabels, m_electrodeLibrary, m_segments, WRecording::MAX_RECORDING_CHANNELS, WRecording::MAX_RECORDING_SAMPLES, and WRecording::MAX_RECORDING_SEGMENTS.
WEEG::WEEG | ( | ) |
Constructor creating a quite unusable instance.
Useful for prototype mechanism.
Definition at line 56 of file WEEG.cpp.
Referenced by getPrototype().
std::string WEEG::getChannelLabel | ( | size_t | channelId | ) | const [inline] |
Return the label of a certain channel.
channelId | id of channel beeing inspected. |
Definition at line 217 of file WEEG.h.
References m_channelLabels.
WPosition WEEG::getChannelPosition | ( | size_t | channelId | ) | const [inline] |
Return the position of the sensor for a certain channel.
channelId | id of channel beeing inspected. |
Definition at line 223 of file WEEG.h.
References m_electrodeLibrary.
const std::string WEEG::getDescription | ( | ) | const [virtual] |
const std::string WEEG::getName | ( | ) | const [virtual] |
size_t WEEG::getNumberOfChannels | ( | ) | const [inline] |
Return the number of channels this EEG has.
Definition at line 207 of file WEEG.h.
References m_segments.
size_t WEEG::getNumberOfSamples | ( | size_t | segmentId | ) | const [inline] |
Returns number of samples of a given segment.
segmentId | id of segment beeing inspected. |
Definition at line 202 of file WEEG.h.
References m_segments.
size_t WEEG::getNumberOfSegments | ( | ) | const [inline] |
Return the number of segments this EEG consists of.
Definition at line 212 of file WEEG.h.
References m_segments.
boost::shared_ptr< WPrototyped > WEEG::getPrototype | ( | ) | [static] |
Returns a prototype instantiated with the true type of the deriving class.
Reimplemented from WRecording.
Definition at line 77 of file WEEG.cpp.
References m_prototype, and WEEG().
bool WEEG::isTexture | ( | ) | const [virtual] |
Access operator for single samples.
segment | id of segment to access |
signal | id of signal to access |
sample | id of sample to access |
Definition at line 197 of file WEEG.h.
References m_segments.
std::vector< bool > WEEG::m_channelEnabled [private] |
WEEGChannelLabels WEEG::m_channelLabels [private] |
Label for each channel.
Definition at line 189 of file WEEG.h.
Referenced by getChannelLabel(), and WEEG().
std::map< std::string, size_t > WEEG::m_electrodeDescriptions [private] |
WEEGElectrodeLibrary WEEG::m_electrodeLibrary [private] |
Information about the electrodes.
Definition at line 177 of file WEEG.h.
Referenced by getChannelPosition(), and WEEG().
boost::shared_ptr< WPrototyped > WEEG::m_prototype = boost::shared_ptr< WPrototyped >() [static, protected] |
The prototype as singleton.
Reimplemented from WRecording.
Definition at line 162 of file WEEG.h.
Referenced by getPrototype().
double WEEG::m_samplingRate [private] |
WEEGSegmentArray WEEG::m_segments [private] |
Contains the EEG data as an arry of segements of data which consist of an array of electrodes which again consist of an array of samples over time.
Definition at line 184 of file WEEG.h.
Referenced by getNumberOfChannels(), getNumberOfSamples(), getNumberOfSegments(), operator()(), and WEEG().