102 inline static Eigen::VectorXd
combine_xyz(
const Eigen::VectorXd& vec)
164 static inline Eigen::SparseMatrix<double>
make_block_diag(
const Eigen::MatrixXd &A, qint32 n)
188 FIFFLIB::fiff_int_t from,
189 FIFFLIB::fiff_int_t to,
191 bool exclude_comp_chs =
false)
216 inline static FIFFLIB::fiff_int_t
make_projector(
const QList<FIFFLIB::FiffProj>& projs,
217 const QStringList& ch_names,
218 Eigen::MatrixXd& proj,
219 const QStringList& bads = FIFFLIB::defaultQStringList,
220 Eigen::MatrixXd& U = FIFFLIB::defaultMatrixXd)
245 Eigen::MatrixXd& proj)
268 const QString &t_fileRawName,
269 Eigen::MatrixXi& events)
274 events = fiffEvents.
events;
290 Eigen::MatrixXi& eventlist)
295 eventlist = fiffEvents.
events;
311 Eigen::MatrixXi& eventlist)
316 eventlist = fiffEvents.
events;
332 const Eigen::MatrixXi& eventlist)
335 fiffEvents.
events = eventlist;
352 const Eigen::MatrixXi& eventlist,
356 fiffEvents.
events = eventlist;
384 const Eigen::MatrixXi &events,
385 const QList<int> &eventCodes,
390 bool doBaseline =
false,
391 bool removeMean =
true)
417 inline static QList<FIFFLIB::FiffProj>
compute_proj(
const FIFFLIB::FiffRawData &raw,
418 const Eigen::MatrixXi &events,
425 const QMap<QString,double> &mapReject = QMap<QString,double>())
450 inline static bool save_raw(
const FIFFLIB::FiffRawData &raw,
451 QIODevice &p_IODevice,
452 const Eigen::RowVectorXi &picks = Eigen::RowVectorXi(),
457 return raw.save(p_IODevice, picks, decim, from, to);
460 static void setup_compensators(FIFFLIB::FiffRawData& raw,
461 FIFFLIB::fiff_int_t dest_comp,
483 FIFFLIB::fiff_int_t cov_kind,
486 return p_pStream->read_cov(p_Node,
535 FIFFLIB::fiff_int_t value)
558 FIFFLIB::fiff_int_t dest,
Boundary element model bundle (inner skull, outer skull, outer skin) loaded from -bem....
Single closed BEM surface (triangulation, normals, conductivity).
MNELIB shared-library export/import macros and library build metadata.
Ordered list of MNELIB::MNEEpochData objects sharing a common FIFFLIB::FiffInfo.
Per-hemisphere cortical surface bundle with decimation, patch info and rendering buffers.
Container pairing the left and right cortical source spaces of a subject.
FIFF continuous raw recording: FiffInfo plus a directory of FIFF_DATA_BUFFER tags for random-access s...
Symbolic FIFF tag, block, value, unit and channel-type constants shared across FIFFLIB.
Stim-channel event list (sample, previous value, new value triples) with FIFF read/write helpers.
SSP projection item: a named projection vector set with active/desired flags, parsed from FIFFB_PROJ_...
Set of averaged evoked responses sharing a FiffInfo, plus the ave-style category / rejection descript...
Noise / data covariance matrix as stored under FIFFB_MNE_COV, with channel names, kind,...
Static linear-algebra helpers: SVD-based conditioning, block-diagonal assembly, sorted index pairs.
Core MNE data structures (source spaces, source estimates, hemispheres).
Labelled 4x4 FIFF affine: source frame, destination frame, rotation, translation and cached inverse.
FIFF noise / data covariance: matrix, channel names, kind, applied projectors, bads,...
static FiffCov compute_from_epochs(const FiffRawData &raw, const Eigen::MatrixXi &events, const QList< int > &eventCodes, float tmin, float tmax, float bmin=0.0f, float bmax=0.0f, bool doBaseline=false, bool removeMean=true, unsigned int ignoreMask=0, float delay=0.0f)
One CTF software-gradient compensation matrix: grade kind, calibration flag and the gradiometer × ref...
QSharedPointer< FiffDirNode > SPtr
FIFF event list: (sample, prev, new) integer triples with read / write / detect / filter helpers.
bool write_to_ascii(QIODevice &p_IODevice, float sfreq=0.0f) const
static bool read(const QString &t_sEventName, const QString &t_fileRawName, FiffEvents &p_Events)
static bool read_from_fif(QIODevice &p_IODevice, FiffEvents &p_Events)
bool write_to_fif(QIODevice &p_IODevice) const
static bool read_from_ascii(QIODevice &p_IODevice, FiffEvents &p_Events)
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
void set_current_comp(fiff_int_t value)
qint32 make_projector(Eigen::MatrixXd &proj) const
qint32 get_current_comp()
bool make_compensator(fiff_int_t from, fiff_int_t to, FiffCtfComp &ctf_comp, bool exclude_comp_chs=false) const
FIFF named matrix: dense / sparse Eigen matrix plus row-name and column-name string lists.
void transpose_named_matrix()
static QList< FiffProj > compute_from_raw(const FiffRawData &raw, const Eigen::MatrixXi &events, int eventCode, float tmin, float tmax, int nGrad, int nMag, int nEeg, const QMap< QString, double > &mapReject=QMap< QString, double >())
static fiff_int_t make_projector(const QList< FiffProj > &projs, const QStringList &ch_names, Eigen::MatrixXd &proj, const QStringList &bads=defaultQStringList, Eigen::MatrixXd &U=defaultMatrixXd)
QSharedPointer< FiffStream > SPtr
static Eigen::VectorXd combine_xyz(const Eigen::VectorXd &vec)
static Eigen::SparseMatrix< double > make_block_diag(const Eigen::MatrixXd &A, qint32 n)
The MNE class provides wrapper functions to stay consistent with mne matlab toolbox.
static bool write_events_to_fif(QIODevice &p_IODevice, const Eigen::MatrixXi &eventlist)
static qint32 make_projector(FIFFLIB::FiffInfo &info, Eigen::MatrixXd &proj)
static qint32 get_current_comp(FIFFLIB::FiffInfo *info)
static bool read_events_from_ascii(QIODevice &p_IODevice, Eigen::MatrixXi &eventlist)
static bool make_compensator(const FIFFLIB::FiffInfo &info, FIFFLIB::fiff_int_t from, FIFFLIB::fiff_int_t to, FIFFLIB::FiffCtfComp &ctf_comp, bool exclude_comp_chs=false)
static FIFFLIB::fiff_int_t make_projector(const QList< FIFFLIB::FiffProj > &projs, const QStringList &ch_names, Eigen::MatrixXd &proj, const QStringList &bads=FIFFLIB::defaultQStringList, Eigen::MatrixXd &U=FIFFLIB::defaultMatrixXd)
static QList< FIFFLIB::FiffChInfo > set_current_comp(QList< FIFFLIB::FiffChInfo > &chs, FIFFLIB::fiff_int_t value)
static bool save_raw(const FIFFLIB::FiffRawData &raw, QIODevice &p_IODevice, const Eigen::RowVectorXi &picks=Eigen::RowVectorXi(), int decim=1, int from=-1, int to=-1)
static bool transform_source_space_to(MNESourceSpaces &p_pMNESourceSpaces, FIFFLIB::fiff_int_t dest, FIFFLIB::FiffCoordTrans &trans)
static void transpose_named_matrix(FIFFLIB::FiffNamedMatrix &mat)
static bool patch_info(MNEHemisphere &p_Hemisphere)
static bool read_source_spaces(FIFFLIB::FiffStream::SPtr &p_pStream, bool add_geom, MNESourceSpaces &p_SourceSpace)
static bool write_events_to_ascii(QIODevice &p_IODevice, const Eigen::MatrixXi &eventlist, float sfreq=0.0f)
static Eigen::VectorXd combine_xyz(const Eigen::VectorXd &vec)
static bool read_cov(FIFFLIB::FiffStream::SPtr &p_pStream, const FIFFLIB::FiffDirNode::SPtr &p_Node, FIFFLIB::fiff_int_t cov_kind, FIFFLIB::FiffCov &p_covData)
static qint32 find_source_space_hemi(MNEHemisphere &p_Hemisphere)
static bool read_events(const QString &t_sEventName, const QString &t_fileRawName, Eigen::MatrixXi &events)
static bool read_events_from_fif(QIODevice &p_IODevice, Eigen::MatrixXi &eventlist)
static FIFFLIB::FiffCov compute_epoch_covariance(const FIFFLIB::FiffRawData &raw, const Eigen::MatrixXi &events, const QList< int > &eventCodes, float tmin, float tmax, float bmin=0.0f, float bmax=0.0f, bool doBaseline=false, bool removeMean=true)
static QList< FIFFLIB::FiffProj > compute_proj(const FIFFLIB::FiffRawData &raw, const Eigen::MatrixXi &events, int eventCode, float tmin, float tmax, int nGrad, int nMag, int nEeg, const QMap< QString, double > &mapReject=QMap< QString, double >())
static Eigen::SparseMatrix< double > make_block_diag(const Eigen::MatrixXd &A, qint32 n)
Hemisphere provides geometry information.
bool compute_patch_info()
qint32 find_source_space_hemi() const
List of MNESourceSpace objects forming a subject source space.
bool transform_source_space_to(FIFFLIB::fiff_int_t dest, FIFFLIB::FiffCoordTrans &trans)
static bool readFromStream(FIFFLIB::FiffStream::SPtr &p_pStream, bool add_geom, MNESourceSpaces &p_SourceSpace)