v2.0.0
Loading...
Searching...
No Matches
MNELIB::MNEMeasDataSet Class Reference

Single measurement epoch or average within MNEMeasData. More...

#include <mne_meas_data_set.h>

Public Types

typedef QSharedPointer< MNEMeasDataSetSPtr
typedef QSharedPointer< const MNEMeasDataSetConstSPtr

Public Member Functions

 MNEMeasDataSet ()
 Constructs an empty measurement data set.
 ~MNEMeasDataSet ()
 Destroys the measurement data set and frees all owned C-style arrays.
int getValuesAtTime (float time, float integ, int nch, bool use_abs, float *value) const

Static Public Member Functions

static int getValuesFromChannelData (float time, float integ, float **data, int nsamp, int nch, float tmin, float sfreq, bool use_abs, float *value)

Public Attributes

QString comment
Eigen::MatrixXf data
Eigen::MatrixXf data_proj
Eigen::MatrixXf data_filt
Eigen::MatrixXf data_white
Eigen::VectorXf stim14
int first
int np
int nave
int kind
float tmin
float tstep
Eigen::VectorXf baselines

Detailed Description

Single measurement epoch or average within MNEMeasData.

Replaces *mneMeasDataSet / mneMeasDataSetRec from MNE-C mne_types.h. Holds the measured data matrix, optional projector / whitened / filtered copies, baseline values, and per-epoch metadata (number of averages, time range, etc.).

Definition at line 73 of file mne_meas_data_set.h.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const MNEMeasDataSet> MNELIB::MNEMeasDataSet::ConstSPtr

Const shared pointer type for MNEMeasDataSet.

Definition at line 77 of file mne_meas_data_set.h.

◆ SPtr

Shared pointer type for MNEMeasDataSet.

Definition at line 76 of file mne_meas_data_set.h.

Constructor & Destructor Documentation

◆ MNEMeasDataSet()

MNEMeasDataSet::MNEMeasDataSet ( )

Constructs an empty measurement data set.

Refactored from mne_new_meas_data_set (mne_read_data.c).

Definition at line 59 of file mne_meas_data_set.cpp.

◆ ~MNEMeasDataSet()

MNEMeasDataSet::~MNEMeasDataSet ( )

Destroys the measurement data set and frees all owned C-style arrays.

Refactored from mne_free_meas_data_set (mne_read_data.c).

Definition at line 71 of file mne_meas_data_set.cpp.

Member Function Documentation

◆ getValuesAtTime()

int MNEMeasDataSet::getValuesAtTime ( float time,
float integ,
int nch,
bool use_abs,
float * value ) const

Pick signal values at a specified time point using linear interpolation.

Reads from the data matrix (time-by-time layout: data[sample][channel]) and writes interpolated values into the output array.

Refactored: mne_get_values_from_data (mne_get_values.c)

Parameters
[in]timeTarget time point (seconds).
[in]integIntegration window width (seconds).
[in]nchNumber of channels to pick.
[in]use_absIf true, take absolute values before averaging.
[out]valueOutput array of picked values (nch elements).
Returns
0 on success, -1 on error.

Definition at line 77 of file mne_meas_data_set.cpp.

◆ getValuesFromChannelData()

int MNEMeasDataSet::getValuesFromChannelData ( float time,
float integ,
float ** data,
int nsamp,
int nch,
float tmin,
float sfreq,
bool use_abs,
float * value )
static

Pick signal values at a specified time point using linear interpolation (channel-major layout).

Reads from a channel-by-time data matrix (data[channel][sample]).

Refactored: mne_get_values_from_data_ch (mne_get_values.c)

Parameters
[in]timeTarget time point (seconds).
[in]integIntegration window width (seconds).
[in]dataData matrix (channel-by-time layout).
[in]nsampNumber of time samples.
[in]nchNumber of channels.
[in]tminTime of first sample (seconds).
[in]sfreqSampling frequency (Hz).
[in]use_absIf true, take absolute values before averaging.
[out]valueOutput array of picked values (nch elements).
Returns
0 on success, -1 on error.

Definition at line 179 of file mne_meas_data_set.cpp.

Member Data Documentation

◆ baselines

Eigen::VectorXf MNELIB::MNEMeasDataSet::baselines

Per-channel baseline offsets currently applied.

Definition at line 148 of file mne_meas_data_set.h.

◆ comment

QString MNELIB::MNEMeasDataSet::comment

Comment / description associated with this data set.

Definition at line 136 of file mne_meas_data_set.h.

◆ data

Eigen::MatrixXf MNELIB::MNEMeasDataSet::data

Measured data matrix [np x nchan] (time-major layout).

Definition at line 137 of file mne_meas_data_set.h.

◆ data_filt

Eigen::MatrixXf MNELIB::MNEMeasDataSet::data_filt

Optionally filtered copy of the data.

Definition at line 139 of file mne_meas_data_set.h.

◆ data_proj

Eigen::MatrixXf MNELIB::MNEMeasDataSet::data_proj

Data after SSP projection (kept separately for some programs).

Definition at line 138 of file mne_meas_data_set.h.

◆ data_white

Eigen::MatrixXf MNELIB::MNEMeasDataSet::data_white

Whitened data (noise-normalised).

Definition at line 140 of file mne_meas_data_set.h.

◆ first

int MNELIB::MNEMeasDataSet::first

First sample index (for raw-data processing).

Definition at line 142 of file mne_meas_data_set.h.

◆ kind

int MNELIB::MNEMeasDataSet::kind

FIFF aspect kind (e.g. FIFFV_ASPECT_AVERAGE).

Definition at line 145 of file mne_meas_data_set.h.

◆ nave

int MNELIB::MNEMeasDataSet::nave

Number of averaged responses.

Definition at line 144 of file mne_meas_data_set.h.

◆ np

int MNELIB::MNEMeasDataSet::np

Number of time samples.

Definition at line 143 of file mne_meas_data_set.h.

◆ stim14

Eigen::VectorXf MNELIB::MNEMeasDataSet::stim14

Samples from the digital stimulus / trigger channel.

Definition at line 141 of file mne_meas_data_set.h.

◆ tmin

float MNELIB::MNEMeasDataSet::tmin

Start time of the epoch (seconds).

Definition at line 146 of file mne_meas_data_set.h.

◆ tstep

float MNELIB::MNEMeasDataSet::tstep

Sampling interval (seconds).

Definition at line 147 of file mne_meas_data_set.h.


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