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