evoked data set More...
#include <fiff_evoked_set.h>
Public Types | |
| typedef QSharedPointer< FiffEvokedSet > | SPtr |
| typedef QSharedPointer< const FiffEvokedSet > | ConstSPtr |
Public Member Functions | |
| FiffEvokedSet () | |
| FiffEvokedSet (QIODevice &p_IODevice) | |
| FiffEvokedSet (const FiffEvokedSet &p_FiffEvokedSet) | |
| ~FiffEvokedSet () | |
| void | clear () |
| FiffEvokedSet | pick_channels (const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList) const |
| bool | compensate_to (FiffEvokedSet &p_FiffEvokedSet, fiff_int_t to) const |
| bool | find_evoked (const FiffEvokedSet &p_FiffEvokedSet) const |
| bool | save (const QString &fileName) const |
Static Public Member Functions | |
| static bool | read (QIODevice &p_IODevice, FiffEvokedSet &p_FiffEvokedSet, QPair< float, float > baseline=defaultFloatPair, bool proj=true) |
| static FiffEvokedSet | computeGrandAverage (const QList< FiffEvokedSet > &evokedSets) |
| static FiffEvokedSet | computeAverages (const FiffRawData &raw, const AverageDescription &desc, const Eigen::MatrixXi &events, QString &log) |
| static bool | checkArtifacts (const Eigen::MatrixXd &epoch, const FiffInfo &info, const QStringList &bads, const RejectionParams &rej, QString &reason) |
| static void | subtractBaseline (Eigen::MatrixXd &epoch, int bminSamp, int bmaxSamp) |
| Subtract baseline from each channel of an epoch. | |
Public Attributes | |
| FiffInfo | info |
| QList< FiffEvoked > | evoked |
| typedef QSharedPointer<const FiffEvokedSet> FIFFLIB::FiffEvokedSet::ConstSPtr |
Const shared pointer type for FiffEvokedSet.
Definition at line 144 of file fiff_evoked_set.h.
| typedef QSharedPointer<FiffEvokedSet> FIFFLIB::FiffEvokedSet::SPtr |
Shared pointer type for FiffEvokedSet.
Definition at line 143 of file fiff_evoked_set.h.
| FiffEvokedSet::FiffEvokedSet | ( | ) |
Constructs a fiff evoked data set.
Definition at line 75 of file fiff_evoked_set.cpp.
| FiffEvokedSet::FiffEvokedSet | ( | QIODevice & | p_IODevice | ) |
Constructs a fiff evoked data set, by reading from a IO device.
| [in] | p_IODevice | IO device to read from the evoked data set. |
Definition at line 83 of file fiff_evoked_set.cpp.
| FiffEvokedSet::FiffEvokedSet | ( | const FiffEvokedSet & | p_FiffEvokedSet | ) |
Copy constructor.
| [in] | p_FiffEvokedSet | Fiff evoked data set which should be copied. |
Definition at line 97 of file fiff_evoked_set.cpp.
| FiffEvokedSet::~FiffEvokedSet | ( | ) |
Destroys the fiff evoked data set.
Definition at line 105 of file fiff_evoked_set.cpp.
|
static |
Check whether an epoch passes artifact rejection criteria.
| [in] | epoch | Epoch data (nChannels x nSamples). |
| [in] | info | Channel info. |
| [in] | bads | List of bad channel names. |
| [in] | rej | Rejection parameters. |
| [out] | reason | Rejection reason string (set only when rejected). |
Definition at line 449 of file fiff_evoked_set.cpp.
| void FiffEvokedSet::clear | ( | ) |
Initializes fiff evoked data set.
Definition at line 111 of file fiff_evoked_set.cpp.
| bool FiffEvokedSet::compensate_to | ( | FiffEvokedSet & | p_FiffEvokedSet, |
| fiff_int_t | to ) const |
mne_compensate_to
Apply compensation to the data as desired
| [in] | to | desired compensation in the output. |
| [in,out] | p_FiffEvokedSet | Evoked set to compensate. |
Definition at line 143 of file fiff_evoked_set.cpp.
|
static |
Compute epoch-based averages from raw data according to an averaging description.
For each category in the description, matching events are epoched from the raw data, artifact-rejected, baseline-corrected, and averaged into a FiffEvoked entry.
| [in] | raw | The raw data. |
| [in] | desc | The averaging description (categories, rejection, etc.). |
| [in] | events | Event matrix (nEvents x 3): [sample, from, to]. |
| [out] | log | Processing log output. |
Definition at line 321 of file fiff_evoked_set.cpp.
|
static |
Compute a grand average across multiple evoked data sets. Corresponding categories are averaged by summing data and dividing by the number of sets. The nave field accumulates the total count.
| [in] | evokedSets | List of evoked data sets to combine. |
Definition at line 274 of file fiff_evoked_set.cpp.
| bool FiffEvokedSet::find_evoked | ( | const FiffEvokedSet & | p_FiffEvokedSet | ) | const |
fiff_find_evoked
Find evoked data sets
| [out] | p_FiffEvokedSet | The read evoked data set. |
Definition at line 171 of file fiff_evoked_set.cpp.
| FiffEvokedSet FiffEvokedSet::pick_channels | ( | const QStringList & | include = defaultQStringList, |
| const QStringList & | exclude = defaultQStringList ) const |
fiff_pick_channels_evoked
Pick desired channels from evoked-response data
| [in] | include | - Channels to include (if empty, include all available). |
| [in] | exclude | - Channels to exclude (if empty, do not exclude any). |
Definition at line 119 of file fiff_evoked_set.cpp.
|
static |
fiff_read_evoked
Wrapper for the FiffEvokedDataSet::read_evoked static function
Read one evoked data set
| [in] | p_IODevice | An fiff IO device like a fiff QFile or QTCPSocket. |
| [out] | p_FiffEvokedSet | The read evoked data set. |
| [in] | baseline | The time interval to apply rescaling / baseline correction. If None do not apply it. If baseline is (a, b). the interval is between "a (s)" and "b (s)". If a is None the beginning of the data is used and if b is None then b is set to the end of the interval. If baseline is equal ot (None, None) all the time interval is used. If None, no correction is applied. |
| [in] | proj | Apply SSP projection vectors (optional, default = true). |
Definition at line 189 of file fiff_evoked_set.cpp.
| bool FiffEvokedSet::save | ( | const QString & | fileName | ) | const |
Save this evoked data set to a FIFF file.
| [in] | fileName | Output file path. |
Definition at line 250 of file fiff_evoked_set.cpp.
|
static |
Subtract baseline from each channel of an epoch.
For each row (channel), the mean of the samples in [bminSamp, bminSamp+nBase) is subtracted.
| [in,out] | epoch | Data matrix (channels x samples) to correct in-place. |
| [in] | bminSamp | First baseline sample (clamped to 0). |
| [in] | bmaxSamp | Last baseline sample (clamped to epoch length - 1). |
Definition at line 306 of file fiff_evoked_set.cpp.
| QList<FiffEvoked> FIFFLIB::FiffEvokedSet::evoked |
List of Fiff Evoked Data.
Definition at line 312 of file fiff_evoked_set.h.
| FiffInfo FIFFLIB::FiffEvokedSet::info |
FIFF measurement information.
Definition at line 311 of file fiff_evoked_set.h.