v2.0.0
Loading...
Searching...
No Matches
MNELIB::MNEEpochDataList Class Reference

Epoch data list. More...

#include <mne_epoch_data_list.h>

Public Types

typedef QSharedPointer< MNEEpochDataListSPtr
typedef QSharedPointer< const MNEEpochDataListConstSPtr

Public Member Functions

 MNEEpochDataList ()
 ~MNEEpochDataList ()
FIFFLIB::FiffEvoked average (const FIFFLIB::FiffInfo &p_info, FIFFLIB::fiff_int_t first, FIFFLIB::fiff_int_t last, Eigen::VectorXi sel=FIFFLIB::defaultVectorXi, bool proj=false)
void applyBaselineCorrection (const QPair< float, float > &baseline)
void dropRejected ()
void pick_channels (const Eigen::RowVectorXi &sel)

Static Public Member Functions

static MNEEpochDataList readEpochs (const FIFFLIB::FiffRawData &raw, const Eigen::MatrixXi &events, float tmin, float tmax, qint32 event, const QMap< QString, double > &mapReject, const QStringList &lExcludeChs=QStringList(), const Eigen::RowVectorXi &picks=Eigen::RowVectorXi())
static bool checkForArtifact (const Eigen::MatrixXd &data, const FIFFLIB::FiffInfo &pFiffInfo, const QMap< QString, double > &mapReject, const QStringList &lExcludeChs=QStringList())
static void checkChThreshold (ArtifactRejectionData &inputData)
static FIFFLIB::FiffEvokedSet averageCategories (const FIFFLIB::FiffRawData &raw, const Eigen::MatrixXi &events, const QList< int > &eventCodes, const QStringList &comments, float tmin, float tmax, const QMap< QString, double > &mapReject=QMap< QString, double >(), const QPair< float, float > &baseline=QPair< float, float >(0.0f, 0.0f), bool proj=false)

Detailed Description

Epoch data list.

Epoch data list, which corresponds to a set of events

Definition at line 81 of file mne_epoch_data_list.h.

Inheritance diagram for MNELIB::MNEEpochDataList:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for MNEEpochDataList.

Definition at line 86 of file mne_epoch_data_list.h.

◆ SPtr

Shared pointer type for MNEEpochDataList.

Definition at line 85 of file mne_epoch_data_list.h.

Constructor & Destructor Documentation

◆ MNEEpochDataList()

MNEEpochDataList::MNEEpochDataList ( )

Default constructor.

Definition at line 69 of file mne_epoch_data_list.cpp.

◆ ~MNEEpochDataList()

MNEEpochDataList::~MNEEpochDataList ( )

Destroys the MNEEpochDataList.

Definition at line 75 of file mne_epoch_data_list.cpp.

Member Function Documentation

◆ applyBaselineCorrection()

void MNEEpochDataList::applyBaselineCorrection ( const QPair< float, float > & baseline)

Applies baseline correction to the evoked data.

Parameters
[in]baselinetime definition of the baseline in seconds [from, to].

Definition at line 242 of file mne_epoch_data_list.cpp.

◆ average()

FiffEvoked MNEEpochDataList::average ( const FIFFLIB::FiffInfo & p_info,
FIFFLIB::fiff_int_t first,
FIFFLIB::fiff_int_t last,
Eigen::VectorXi sel = FIFFLIB::defaultVectorXi,
bool proj = false )

Averages epoch list. Note that no baseline correction performed.

Parameters
[in]infomeasurement info.
[in]firstFirst time sample.
[in]lastLast time sample.
[in]selWhich epochs should be averaged (optional).
[in]projApply SSP projection vectors (optional, default = false).

Definition at line 181 of file mne_epoch_data_list.cpp.

◆ averageCategories()

FiffEvokedSet MNEEpochDataList::averageCategories ( const FIFFLIB::FiffRawData & raw,
const Eigen::MatrixXi & events,
const QList< int > & eventCodes,
const QStringList & comments,
float tmin,
float tmax,
const QMap< QString, double > & mapReject = QMap<QString,double>(),
const QPair< float, float > & baseline = QPair<float,float>(0.0f, 0.0f),
bool proj = false )
static

averageCategories

Multi-category offline averaging. Reads epochs from raw data for multiple event types and returns an FiffEvokedSet with one FiffEvoked per category. Ported from average.c (MNE-C).

Parameters
[in]rawThe raw data.
[in]eventsEvent matrix (nEvents x 3): [sample, before, after].
[in]eventCodesList of event codes, one per category.
[in]commentsList of category names/comments, one per category.
[in]tminStart of epoch relative to event (seconds).
[in]tmaxEnd of epoch relative to event (seconds).
[in]mapRejectRejection thresholds (key = channel type string, value = threshold).
[in]baselineBaseline interval [from, to] in seconds. If from==to, no baseline correction.
[in]projApply SSP projection vectors (optional, default = false).
Returns
FiffEvokedSet containing one FiffEvoked per category.

Definition at line 396 of file mne_epoch_data_list.cpp.

◆ checkChThreshold()

void MNEEpochDataList::checkChThreshold ( ArtifactRejectionData & inputData)
static

Definition at line 362 of file mne_epoch_data_list.cpp.

◆ checkForArtifact()

bool MNEEpochDataList::checkForArtifact ( const Eigen::MatrixXd & data,
const FIFFLIB::FiffInfo & pFiffInfo,
const QMap< QString, double > & mapReject,
const QStringList & lExcludeChs = QStringList() )
static

Checks the givven matrix for artifacts beyond a threshold value.

Parameters
[in]dataThe data matrix.
[in]pFiffInfoThe fiff info.
[in]mapRejectThe channel data types to scan for. EEG, MEG or EOG.
[in]lExcludeChsList of channel names to exclude.
Returns
Whether a threshold artifact was detected.

Definition at line 275 of file mne_epoch_data_list.cpp.

◆ dropRejected()

void MNEEpochDataList::dropRejected ( )

Drop/Remove all epochs tagged as rejected

Definition at line 253 of file mne_epoch_data_list.cpp.

◆ pick_channels()

void MNEEpochDataList::pick_channels ( const Eigen::RowVectorXi & sel)

Reduces alld epochs to the selected rows.

Parameters
[in]selThe selected rows to keep.

Definition at line 265 of file mne_epoch_data_list.cpp.

◆ readEpochs()

MNEEpochDataList MNEEpochDataList::readEpochs ( const FIFFLIB::FiffRawData & raw,
const Eigen::MatrixXi & events,
float tmin,
float tmax,
qint32 event,
const QMap< QString, double > & mapReject,
const QStringList & lExcludeChs = QStringList(),
const Eigen::RowVectorXi & picks = Eigen::RowVectorXi() )
static

Read the epochs from a raw file based on provided events.

Parameters
[in]rawThe raw data.
[in]eventsThe events provided in samples and event kind.
[in]tminThe start time relative to the event in seconds.
[in]tmaxThe end time relative to the event in seconds.
[in]eventThe event kind.
[in]lExcludeChsList of channel names to exclude.
[in]picksWhich channels to pick.

Definition at line 86 of file mne_epoch_data_list.cpp.


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