MNE-CPP
0.1.9
A Framework for Electrophysiology
|
evoked data More...
#include <fiff_evoked.h>
Public Types | |
typedef QSharedPointer< FiffEvoked > | SPtr |
typedef QSharedPointer< const FiffEvoked > | ConstSPtr |
Public Member Functions | |
FiffEvoked () | |
FiffEvoked (QIODevice &p_IODevice, QVariant setno=0, QPair< float, float > t_baseline=defaultFloatPair, bool proj=true, fiff_int_t p_aspect_kind=FIFFV_ASPECT_AVERAGE) | |
FiffEvoked (const FiffEvoked &p_FiffEvoked) | |
~FiffEvoked () | |
QStringList | ch_names () |
void | clear () |
QString | aspectKindToString () const |
bool | isEmpty () |
FiffEvoked | pick_channels (const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList) const |
void | setInfo (const FiffInfo &p_info, bool proj=true) |
FiffEvoked & | operator+= (const Eigen::MatrixXd &newData) |
void | applyBaselineCorrection (QPair< float, float > &p_baseline) |
Static Public Member Functions | |
static bool | read (QIODevice &p_IODevice, FiffEvoked &p_FiffEvoked, QVariant setno=0, QPair< float, float > t_baseline=defaultFloatPair, bool proj=true, fiff_int_t p_aspect_kind=FIFFV_ASPECT_AVERAGE) |
Public Attributes | |
FiffInfo | info |
fiff_int_t | nave |
fiff_int_t | aspect_kind |
fiff_int_t | first |
fiff_int_t | last |
QString | comment |
Eigen::RowVectorXf | times |
Eigen::MatrixXd | data |
Eigen::MatrixXd | proj |
QPair< float, float > | baseline |
typedef QSharedPointer<const FiffEvoked> FIFFLIB::FiffEvoked::ConstSPtr |
Const shared pointer type for FiffEvoked.
Definition at line 81 of file fiff_evoked.h.
typedef QSharedPointer<FiffEvoked> FIFFLIB::FiffEvoked::SPtr |
Shared pointer type for FiffEvoked.
Definition at line 80 of file fiff_evoked.h.
FiffEvoked::FiffEvoked | ( | ) |
Constructs a fiff evoked data.
Definition at line 60 of file fiff_evoked.cpp.
FiffEvoked::FiffEvoked | ( | QIODevice & | p_IODevice, |
QVariant | setno = 0 , |
||
QPair< float, float > | t_baseline = defaultFloatPair , |
||
bool | proj = true , |
||
fiff_int_t | p_aspect_kind = FIFFV_ASPECT_AVERAGE |
||
) |
Constructs fiff evoked data, by reading from a IO device.
[in] | p_IODevice | IO device to read from the evoked data set. |
[in] | setno | The set to pick. Dataset ID number (int) or comment/name (str). Optional if there isonly one data set in file. |
[in] | t_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). |
[in] | p_aspect_kind | Either "FIFFV_ASPECT_AVERAGE" or "FIFFV_ASPECT_STD_ERR". The type of data to read. Only used if "setno" is a str. |
Definition at line 72 of file fiff_evoked.cpp.
FiffEvoked::FiffEvoked | ( | const FiffEvoked & | p_FiffEvoked | ) |
Copy constructor.
[in] | p_FiffEvoked | Fiff evoked data which should be copied. |
Definition at line 89 of file fiff_evoked.cpp.
FiffEvoked::~FiffEvoked | ( | ) |
Destroys the FiffEvoked.
Definition at line 106 of file fiff_evoked.cpp.
void FiffEvoked::applyBaselineCorrection | ( | QPair< float, float > & | p_baseline | ) |
Applies baseline correction to the evoked data.
[in] | p_baseline | time definition of the baseline in seconds [from, to]. |
Definition at line 562 of file fiff_evoked.cpp.
|
inline |
Provides the python Evoked string formatted aspect_kind, which is stored in kind: "average" <-> FIFFV_ASPECT_AVERAGE, "standard_error" <-> FIFFV_ASPECT_STD_ERR or "unknown"
Definition at line 247 of file fiff_evoked.h.
|
inline |
Returns list of channel names stored in fiff info -> this is to stay consistent with python
Definition at line 240 of file fiff_evoked.h.
void FiffEvoked::clear | ( | ) |
Initializes fiff evoked data.
Definition at line 113 of file fiff_evoked.cpp.
|
inline |
Returns whether FiffEvoked is empty.
Definition at line 259 of file fiff_evoked.h.
FiffEvoked & FiffEvoked::operator+= | ( | const Eigen::MatrixXd & | newData | ) |
Inputs a new data set and recalculates the average. This function also iterates the nave parameter by one.
[in] | newData | the new data set which is to be added to the current average. |
Definition at line 535 of file fiff_evoked.cpp.
FiffEvoked FiffEvoked::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 128 of file fiff_evoked.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_FiffEvoked | The read evoked data. |
[in] | setno | the set to pick. Dataset ID number (int) or comment/name (str). Optional if there isonly one data set in file. |
[in] | t_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). |
[in] | p_aspect_kind | Either "FIFFV_ASPECT_AVERAGE" or "FIFFV_ASPECT_STD_ERR". The type of data to read. Only used if "setno" is a str. |
Definition at line 169 of file fiff_evoked.cpp.
void FiffEvoked::setInfo | ( | const FiffInfo & | p_info, |
bool | proj = true |
||
) |
Set a new fiff measurement info
[in] | p_info | Info to set. |
[in] | proj | Apply SSP projection vectors (optional, default = true). |
Definition at line 500 of file fiff_evoked.cpp.
fiff_int_t FIFFLIB::FiffEvoked::aspect_kind |
Aspect identifier, either FIFFV_ASPECT_AVERAGE or FIFFV_ASPECT_STD_ERR.
Definition at line 226 of file fiff_evoked.h.
QPair<float,float> FIFFLIB::FiffEvoked::baseline |
Baseline information in seconds form where the seconds are seen relative to the trigger, meaning they can also be negative [from to]
Definition at line 233 of file fiff_evoked.h.
QString FIFFLIB::FiffEvoked::comment |
Comment on dataset. Can be the condition.
Definition at line 229 of file fiff_evoked.h.
Eigen::MatrixXd FIFFLIB::FiffEvoked::data |
2D array of shape [n_channels x n_times]; Evoked response.
Definition at line 231 of file fiff_evoked.h.
fiff_int_t FIFFLIB::FiffEvoked::first |
First time sample.
Definition at line 227 of file fiff_evoked.h.
FiffInfo FIFFLIB::FiffEvoked::info |
Measurement info.
Definition at line 224 of file fiff_evoked.h.
fiff_int_t FIFFLIB::FiffEvoked::last |
Last time sample.
Definition at line 228 of file fiff_evoked.h.
fiff_int_t FIFFLIB::FiffEvoked::nave |
Number of averaged epochs.
Definition at line 225 of file fiff_evoked.h.
Eigen::MatrixXd FIFFLIB::FiffEvoked::proj |
SSP projection.
Definition at line 232 of file fiff_evoked.h.
Eigen::RowVectorXf FIFFLIB::FiffEvoked::times |
Vector of time instants in seconds.
Definition at line 230 of file fiff_evoked.h.