MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Epoch data list. More...
#include <mne_epoch_data_list.h>
Public Types | |
typedef QSharedPointer< MNEEpochDataList > | SPtr |
typedef QSharedPointer< const MNEEpochDataList > | ConstSPtr |
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) |
Epoch data list.
Epoch data list, which corresponds to a set of events
Definition at line 78 of file mne_epoch_data_list.h.
typedef QSharedPointer<const MNEEpochDataList> MNELIB::MNEEpochDataList::ConstSPtr |
Const shared pointer type for MNEEpochDataList.
Definition at line 83 of file mne_epoch_data_list.h.
typedef QSharedPointer<MNEEpochDataList> MNELIB::MNEEpochDataList::SPtr |
Shared pointer type for MNEEpochDataList.
Definition at line 82 of file mne_epoch_data_list.h.
MNEEpochDataList::MNEEpochDataList | ( | ) |
Default constructor.
Definition at line 67 of file mne_epoch_data_list.cpp.
MNEEpochDataList::~MNEEpochDataList | ( | ) |
Destroys the MNEEpochDataList.
Definition at line 73 of file mne_epoch_data_list.cpp.
void MNEEpochDataList::applyBaselineCorrection | ( | const QPair< float, float > & | baseline | ) |
Applies baseline correction to the evoked data.
[in] | baseline | time definition of the baseline in seconds [from, to]. |
Definition at line 240 of file mne_epoch_data_list.cpp.
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.
[in] | info | measurement info. |
[in] | first | First time sample. |
[in] | last | Last time sample. |
[in] | sel | Which epochs should be averaged (optional). |
[in] | proj | Apply SSP projection vectors (optional, default = false). |
Definition at line 179 of file mne_epoch_data_list.cpp.
|
static |
Checks the givven matrix for artifacts beyond a threshold value.
[in] | data | The data matrix. |
[in] | pFiffInfo | The fiff info. |
[in] | mapReject | The channel data types to scan for. EEG, MEG or EOG. |
[in] | lExcludeChs | List of channel names to exclude. |
Definition at line 273 of file mne_epoch_data_list.cpp.
void MNEEpochDataList::dropRejected | ( | ) |
Drop/Remove all epochs tagged as rejected
Definition at line 251 of file mne_epoch_data_list.cpp.
void MNEEpochDataList::pick_channels | ( | const Eigen::RowVectorXi & | sel | ) |
Reduces alld epochs to the selected rows.
[in] | sel | The selected rows to keep. |
Definition at line 263 of file mne_epoch_data_list.cpp.
|
static |
Read the epochs from a raw file based on provided events.
[in] | raw | The raw data. |
[in] | events | The events provided in samples and event kind. |
[in] | tmin | The start time relative to the event in seconds. |
[in] | tmax | The end time relative to the event in seconds. |
[in] | event | The event kind. |
[in] | lExcludeChs | List of channel names to exclude. |
[in] | picks | Which channels to pick. |
Definition at line 84 of file mne_epoch_data_list.cpp.