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

Matrix specification with a channel list. More...

#include <mne_named_matrix.h>

Public Types

typedef QSharedPointer< MneNamedMatrixSPtr
typedef QSharedPointer< const MneNamedMatrixConstSPtr

Public Member Functions

 MneNamedMatrix ()
 MneNamedMatrix (const MneNamedMatrix &p_MneNamedMatrix)
 ~MneNamedMatrix ()
MneNamedMatrixpick_from_named_matrix (const QStringList &pickrowlist, int picknrow, const QStringList &pickcollist, int pickncol) const

Static Public Member Functions

static MneNamedMatrixbuild_named_matrix (int nrow, int ncol, const QStringList &rowlist, const QStringList &collist, float **data)
static MneNamedMatrixread_named_matrix (QSharedPointer< FIFFLIB::FiffStream > &stream, const QSharedPointer< FIFFLIB::FiffDirNode > &node, int kind)

Public Attributes

int nrow
int ncol
QStringList rowlist
QStringList collist
float ** data

Detailed Description

Matrix specification with a channel list.

Implements MNE Named Matrix (Replaces *mneNamedMatrix,mneNamedMatrixRec; struct of MNE-C mne_types.h). !!!!TODO Merge with existing FiffNamedMatrix!!!!

Definition at line 84 of file mne_named_matrix.h.

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for MneNamedMatrix.

Definition at line 88 of file mne_named_matrix.h.

◆ SPtr

Shared pointer type for MneNamedMatrix.

Definition at line 87 of file mne_named_matrix.h.

Constructor & Destructor Documentation

◆ MneNamedMatrix() [1/2]

MneNamedMatrix::MneNamedMatrix ( )

Constructs the MNE Named Matrix

Definition at line 120 of file mne_named_matrix.cpp.

◆ MneNamedMatrix() [2/2]

MneNamedMatrix::MneNamedMatrix ( const MneNamedMatrix p_MneNamedMatrix)

Copy constructor. Refactored: mne_dup_named_matrix (mne_named_matrix.c)

[in]p_MneNamedMatrixMNE Named Matrix which should be copied.

Definition at line 131 of file mne_named_matrix.cpp.

◆ ~MneNamedMatrix()

MneNamedMatrix::~MneNamedMatrix ( )

Destroys the MNE Named Matrix description Refactored: mne_free_named_matrix (mne_named_matrix.c)

Definition at line 149 of file mne_named_matrix.cpp.

Member Function Documentation

◆ build_named_matrix()

MneNamedMatrix * MneNamedMatrix::build_named_matrix ( int  nrow,
int  ncol,
const QStringList &  rowlist,
const QStringList &  collist,
float **  data 

Build a named matrix from the ingredients Refactored: mne_build_named_matrix (mne_named_matrix.c)

[in]nrowNumber of rows.
[in]ncolNumber of columns.
[in]rowlistList of row (channel) names.
[in]collistList of column (channel) names.
[in]dataData to store.
The new named matrix.

Definition at line 156 of file mne_named_matrix.cpp.

◆ pick_from_named_matrix()

MneNamedMatrix * MneNamedMatrix::pick_from_named_matrix ( const QStringList &  pickrowlist,
int  picknrow,
const QStringList &  pickcollist,
int  pickncol 
) const

Pick appropriate rows and columns and build a new matrix Refactored: mne_pick_from_named_matrix (mne_named_matrix.c)

[in]pickrowlistList of row names to pick.
[in]picknrowNumber of rows.
[in]pickcollistList of column names to pick.
[in]pickncolNumber of columns.
The read named matrix.

Definition at line 173 of file mne_named_matrix.cpp.

◆ read_named_matrix()

MneNamedMatrix * MneNamedMatrix::read_named_matrix ( QSharedPointer< FIFFLIB::FiffStream > &  stream,
const QSharedPointer< FIFFLIB::FiffDirNode > &  node,
int  kind 

Read a named matrix from the specified node Refactored: mne_read_named_matrix (mne_named_matrix.c)

[in]streamStream to read from.
[in]nodeNode to read from.
[in]kindBlock kind which should be read.
The read named matrix.

Definition at line 270 of file mne_named_matrix.cpp.

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