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

Class which calculates a source position from an EEG recording at a given time position. More...

#include <WEEGSourceCalculator.h>

+ Collaboration diagram for WEEGSourceCalculator:

Public Member Functions

 WEEGSourceCalculator (const std::shared_ptr< const WEEG2 > eeg)
 Constructor. More...
 
WPosition calculate (const std::shared_ptr< const WEEGEvent > event) const
 Does the calculation. More...
 

Private Attributes

const std::shared_ptr< const WEEG2m_eeg
 pointer to the EEG dataset More...
 
std::vector< bool > m_hasPosition
 vector which saves for each channel whether there exists a position in the EEG dataset or not More...
 
std::size_t m_numPositions
 how many channels with positions exist in the EEG dataset More...
 

Detailed Description

Class which calculates a source position from an EEG recording at a given time position.

Definition at line 42 of file WEEGSourceCalculator.h.

Constructor & Destructor Documentation

◆ WEEGSourceCalculator()

WEEGSourceCalculator::WEEGSourceCalculator ( const std::shared_ptr< const WEEG2 eeg)
explicit

Constructor.

Parameters
eegpointer to the EEG dataset

Definition at line 40 of file WEEGSourceCalculator.cpp.

References m_eeg, m_hasPosition, and m_numPositions.

Member Function Documentation

◆ calculate()

WPosition WEEGSourceCalculator::calculate ( const std::shared_ptr< const WEEGEvent event) const

Does the calculation.

Parameters
eventan event marking a time position
Returns
the calculated position

Definition at line 63 of file WEEGSourceCalculator.cpp.

References m_eeg, m_hasPosition, and m_numPositions.

Member Data Documentation

◆ m_eeg

const std::shared_ptr< const WEEG2 > WEEGSourceCalculator::m_eeg
private

pointer to the EEG dataset

Definition at line 65 of file WEEGSourceCalculator.h.

Referenced by calculate(), and WEEGSourceCalculator().

◆ m_hasPosition

std::vector< bool > WEEGSourceCalculator::m_hasPosition
private

vector which saves for each channel whether there exists a position in the EEG dataset or not

Definition at line 71 of file WEEGSourceCalculator.h.

Referenced by calculate(), and WEEGSourceCalculator().

◆ m_numPositions

std::size_t WEEGSourceCalculator::m_numPositions
private

how many channels with positions exist in the EEG dataset

Definition at line 76 of file WEEGSourceCalculator.h.

Referenced by calculate(), and WEEGSourceCalculator().


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