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) |
| 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) |
Epoch data list.
Epoch data list, which corresponds to a set of events
Definition at line 81 of file mne_epoch_data_list.h.

| typedef QSharedPointer<const MNEEpochDataList> MNELIB::MNEEpochDataList::ConstSPtr |
Const shared pointer type for MNEEpochDataList.
Definition at line 86 of file mne_epoch_data_list.h.
| typedef QSharedPointer<MNEEpochDataList> MNELIB::MNEEpochDataList::SPtr |
Shared pointer type for MNEEpochDataList.
Definition at line 85 of file mne_epoch_data_list.h.
| MNEEpochDataList::MNEEpochDataList | ( | ) |
Default constructor.
Definition at line 69 of file mne_epoch_data_list.cpp.
| MNEEpochDataList::~MNEEpochDataList | ( | ) |
Destroys the MNEEpochDataList.
Definition at line 75 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 242 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 181 of file mne_epoch_data_list.cpp.
|
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).
| [in] | raw | The raw data. |
| [in] | events | Event matrix (nEvents x 3): [sample, before, after]. |
| [in] | eventCodes | List of event codes, one per category. |
| [in] | comments | List of category names/comments, one per category. |
| [in] | tmin | Start of epoch relative to event (seconds). |
| [in] | tmax | End of epoch relative to event (seconds). |
| [in] | mapReject | Rejection thresholds (key = channel type string, value = threshold). |
| [in] | baseline | Baseline interval [from, to] in seconds. If from==to, no baseline correction. |
| [in] | proj | Apply SSP projection vectors (optional, default = false). |
Definition at line 396 of file mne_epoch_data_list.cpp.
|
static |
Definition at line 362 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 275 of file mne_epoch_data_list.cpp.
| void MNEEpochDataList::dropRejected | ( | ) |
Drop/Remove all epochs tagged as rejected
Definition at line 253 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 265 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 86 of file mne_epoch_data_list.cpp.