MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
FIFFLIB::FiffEvoked Class Reference

evoked data More...

#include <fiff_evoked.h>

Public Types

typedef QSharedPointer< FiffEvokedSPtr
 
typedef QSharedPointer< const FiffEvokedConstSPtr
 

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)
 
FiffEvokedoperator+= (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
 

Detailed Description

evoked data

NEW PYTHON LIKE Fiff evoked

Definition at line 77 of file fiff_evoked.h.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const FiffEvoked> FIFFLIB::FiffEvoked::ConstSPtr

Const shared pointer type for FiffEvoked.

Definition at line 81 of file fiff_evoked.h.

◆ SPtr

typedef QSharedPointer<FiffEvoked> FIFFLIB::FiffEvoked::SPtr

Shared pointer type for FiffEvoked.

Definition at line 80 of file fiff_evoked.h.

Constructor & Destructor Documentation

◆ FiffEvoked() [1/3]

FiffEvoked::FiffEvoked ( )

Constructs a fiff evoked data.

Definition at line 60 of file fiff_evoked.cpp.

◆ FiffEvoked() [2/3]

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.

Parameters
[in]p_IODeviceIO device to read from the evoked data set.
[in]setnoThe set to pick. Dataset ID number (int) or comment/name (str). Optional if there isonly one data set in file.
[in]t_baselineThe 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]projApply SSP projection vectors (optional, default = true).
[in]p_aspect_kindEither "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() [3/3]

FiffEvoked::FiffEvoked ( const FiffEvoked p_FiffEvoked)

Copy constructor.

Parameters
[in]p_FiffEvokedFiff evoked data which should be copied.

Definition at line 89 of file fiff_evoked.cpp.

◆ ~FiffEvoked()

FiffEvoked::~FiffEvoked ( )

Destroys the FiffEvoked.

Definition at line 106 of file fiff_evoked.cpp.

Member Function Documentation

◆ applyBaselineCorrection()

void FiffEvoked::applyBaselineCorrection ( QPair< float, float > &  p_baseline)

Applies baseline correction to the evoked data.

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

Definition at line 562 of file fiff_evoked.cpp.

◆ aspectKindToString()

QString FIFFLIB::FiffEvoked::aspectKindToString ( ) const
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"

Returns
string formatted aspect_kind.

Definition at line 247 of file fiff_evoked.h.

◆ ch_names()

QStringList FIFFLIB::FiffEvoked::ch_names ( )
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.

◆ clear()

void FiffEvoked::clear ( )

Initializes fiff evoked data.

Definition at line 113 of file fiff_evoked.cpp.

◆ isEmpty()

bool FIFFLIB::FiffEvoked::isEmpty ( )
inline

Returns whether FiffEvoked is empty.

Returns
true if is empty, false otherwise.

Definition at line 259 of file fiff_evoked.h.

◆ operator+=()

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.

Parameters
[in]newDatathe new data set which is to be added to the current average.
Returns
the updated FiffEvoked.

Definition at line 535 of file fiff_evoked.cpp.

◆ pick_channels()

FiffEvoked FiffEvoked::pick_channels ( const QStringList &  include = defaultQStringList,
const QStringList &  exclude = defaultQStringList 
) const

fiff_pick_channels_evoked

MNE toolbox root function

Pick desired channels from evoked-response data

Parameters
[in]include- Channels to include (if empty, include all available).
[in]exclude- Channels to exclude (if empty, do not exclude any).
Returns
the desired fiff evoked data.

Definition at line 128 of file fiff_evoked.cpp.

◆ read()

bool FiffEvoked::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 
)
static

fiff_read_evoked

MNE toolbox root function

Wrapper for the FiffEvokedDataSet::read_evoked static function

Read one evoked data set

Parameters
[in]p_IODeviceAn fiff IO device like a fiff QFile or QTCPSocket.
[out]p_FiffEvokedThe read evoked data.
[in]setnothe set to pick. Dataset ID number (int) or comment/name (str). Optional if there isonly one data set in file.
[in]t_baselineThe 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]projApply SSP projection vectors (optional, default = true).
[in]p_aspect_kindEither "FIFFV_ASPECT_AVERAGE" or "FIFFV_ASPECT_STD_ERR". The type of data to read. Only used if "setno" is a str.
Returns
true if successful, false otherwise.

Definition at line 169 of file fiff_evoked.cpp.

◆ setInfo()

void FiffEvoked::setInfo ( const FiffInfo p_info,
bool  proj = true 
)

Set a new fiff measurement info

Parameters
[in]p_infoInfo to set.
[in]projApply SSP projection vectors (optional, default = true).

Definition at line 500 of file fiff_evoked.cpp.

Member Data Documentation

◆ aspect_kind

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.

◆ baseline

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.

◆ comment

QString FIFFLIB::FiffEvoked::comment

Comment on dataset. Can be the condition.

Definition at line 229 of file fiff_evoked.h.

◆ data

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.

◆ first

fiff_int_t FIFFLIB::FiffEvoked::first

First time sample.

Definition at line 227 of file fiff_evoked.h.

◆ info

FiffInfo FIFFLIB::FiffEvoked::info

Measurement info.

Definition at line 224 of file fiff_evoked.h.

◆ last

fiff_int_t FIFFLIB::FiffEvoked::last

Last time sample.

Definition at line 228 of file fiff_evoked.h.

◆ nave

fiff_int_t FIFFLIB::FiffEvoked::nave

Number of averaged epochs.

Definition at line 225 of file fiff_evoked.h.

◆ proj

Eigen::MatrixXd FIFFLIB::FiffEvoked::proj

SSP projection.

Definition at line 232 of file fiff_evoked.h.

◆ times

Eigen::RowVectorXf FIFFLIB::FiffEvoked::times

Vector of time instants in seconds.

Definition at line 230 of file fiff_evoked.h.


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