34 #include "../common/WPrototyped.h"
35 #include "../common/math/linearAlgebra/WPosition.h"
36 #include "WRecording.h"
60 typedef std::vector< double > WEEGElectrode;
61 typedef std::vector< WEEGElectrode > WEEGSegment;
62 typedef std::vector< WEEGSegment > WEEGSegmentArray;
64 typedef std::vector< WEEGElectrodeObject > WEEGElectrodeLibrary;
65 typedef std::vector< std::pair< std::string, std::string > > WEEGChannelLabels;
79 explicit WEEG(
const WEEGSegmentArray& data,
80 const WEEGElectrodeLibrary& electrodeLib,
81 const WEEGChannelLabels& channelLabels );
95 const double&
operator()(
size_t segment,
size_t signal,
size_t sample )
const;
142 virtual const std::string
getName()
const;
193 inline const double&
WEEG::operator()(
size_t segment,
size_t signal,
size_t sample )
const
An incomplete implementation to store information about electrodes of EEG data.
WPosition getPosition() const
Returns the position of the electrode.
WPosition m_position
Position of the electrode in space.
WEEGElectrodeObject(WPosition position)
Contructor taking the position of the elctrode.
Contains EEG recording data.
static std::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
WEEGChannelLabels m_channelLabels
Label for each channel.
std::vector< bool > m_channelEnabled
Is the channel enabled?
WPosition getChannelPosition(size_t channelId) const
Return the position of the sensor for a certain channel.
static std::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
WEEGElectrodeLibrary m_electrodeLibrary
Information about the electrodes.
size_t getNumberOfChannels() const
Return the number of channels this EEG has.
std::map< std::string, size_t > m_electrodeDescriptions
Description of electrodes.
std::string getChannelLabel(size_t channelId) const
Return the label of a certain channel.
virtual bool isTexture() const
Determines whether this dataset can be used as a texture.
size_t getNumberOfSegments() const
Return the number of segments this EEG consists of.
WEEG()
Constructor creating a quite unusable instance.
WEEGSegmentArray m_segments
Contains the EEG data as an arry of segements of data which consist of an array of electrodes which a...
virtual const std::string getName() const
Gets the name of this prototype.
const double & operator()(size_t segment, size_t signal, size_t sample) const
Access operator for single samples.
virtual const std::string getDescription() const
Gets the description for this prototype.
size_t getNumberOfSamples(size_t segmentId) const
Returns number of samples of a given segment.
This only is a 3d double vector.
Base class for all recorded data and results with events and sensor positions.