Single measurement epoch or average within MNEMeasData. More...
#include <mne_meas_data_set.h>
Public Types | |
| typedef QSharedPointer< MNEMeasDataSet > | SPtr |
| typedef QSharedPointer< const MNEMeasDataSet > | ConstSPtr |
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 |
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.
| typedef QSharedPointer<const MNEMeasDataSet> MNELIB::MNEMeasDataSet::ConstSPtr |
Const shared pointer type for MNEMeasDataSet.
Definition at line 77 of file mne_meas_data_set.h.
| typedef QSharedPointer<MNEMeasDataSet> MNELIB::MNEMeasDataSet::SPtr |
Shared pointer type for MNEMeasDataSet.
Definition at line 76 of file mne_meas_data_set.h.
| 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 | ( | ) |
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.
| 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)
| [in] | time | Target time point (seconds). |
| [in] | integ | Integration window width (seconds). |
| [in] | nch | Number of channels to pick. |
| [in] | use_abs | If true, take absolute values before averaging. |
| [out] | value | Output array of picked values (nch elements). |
Definition at line 77 of file mne_meas_data_set.cpp.
|
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)
| [in] | time | Target time point (seconds). |
| [in] | integ | Integration window width (seconds). |
| [in] | data | Data matrix (channel-by-time layout). |
| [in] | nsamp | Number of time samples. |
| [in] | nch | Number of channels. |
| [in] | tmin | Time of first sample (seconds). |
| [in] | sfreq | Sampling frequency (Hz). |
| [in] | use_abs | If true, take absolute values before averaging. |
| [out] | value | Output array of picked values (nch elements). |
Definition at line 179 of file mne_meas_data_set.cpp.
| Eigen::VectorXf MNELIB::MNEMeasDataSet::baselines |
Per-channel baseline offsets currently applied.
Definition at line 148 of file mne_meas_data_set.h.
| QString MNELIB::MNEMeasDataSet::comment |
Comment / description associated with this data set.
Definition at line 136 of file mne_meas_data_set.h.
| 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.
| Eigen::MatrixXf MNELIB::MNEMeasDataSet::data_filt |
Optionally filtered copy of the data.
Definition at line 139 of file mne_meas_data_set.h.
| 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.
| Eigen::MatrixXf MNELIB::MNEMeasDataSet::data_white |
Whitened data (noise-normalised).
Definition at line 140 of file mne_meas_data_set.h.
| int MNELIB::MNEMeasDataSet::first |
First sample index (for raw-data processing).
Definition at line 142 of file mne_meas_data_set.h.
| int MNELIB::MNEMeasDataSet::kind |
FIFF aspect kind (e.g. FIFFV_ASPECT_AVERAGE).
Definition at line 145 of file mne_meas_data_set.h.
| int MNELIB::MNEMeasDataSet::nave |
Number of averaged responses.
Definition at line 144 of file mne_meas_data_set.h.
| int MNELIB::MNEMeasDataSet::np |
Number of time samples.
Definition at line 143 of file mne_meas_data_set.h.
| Eigen::VectorXf MNELIB::MNEMeasDataSet::stim14 |
Samples from the digital stimulus / trigger channel.
Definition at line 141 of file mne_meas_data_set.h.
| float MNELIB::MNEMeasDataSet::tmin |
Start time of the epoch (seconds).
Definition at line 146 of file mne_meas_data_set.h.
| float MNELIB::MNEMeasDataSet::tstep |
Sampling interval (seconds).
Definition at line 147 of file mne_meas_data_set.h.