v2.0.0
Loading...
Searching...
No Matches
mne_meas_data.cpp File Reference

Definition of the MNE Meas Data (MNEMeasData) Class. More...

#include "mne_meas_data.h"
#include "mne_meas_data_set.h"
#include "mne_inverse_operator.h"
#include <mne/mne_types.h>
#include <mne/mne_named_matrix.h>
#include <fiff/fiff_types.h>
#include <fiff/fiff_coord_trans.h>
#include <time.h>
#include <QFile>
#include <QTextStream>
Include dependency graph for mne_meas_data.cpp:

Go to the source code of this file.

Classes

struct  INVERSELIB::ringBufBuf_9
 Single ring buffer entry holding a float array and a pointer to its matrix view. More...
struct  INVERSELIB::ringBuf_9
 Circular buffer managing a fixed-size pool of ringBufBuf_9 entries for streaming data reuse. More...

Namespaces

namespace  INVERSELIB
 Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).

Macros

#define TRUE   1
#define FALSE   0
#define FAIL   -1
#define OK   0
#define MIN(a, b)
#define MAX(a, b)
#define MALLOC_9(x, t)
#define REALLOC_9(x, y, t)
#define FREE_9(x)
#define ALLOC_CMATRIX_9(x, y)
#define FREE_CMATRIX_9(m)
#define MAXDATE   100
#define MAXBUF   200

Typedefs

typedef struct INVERSELIB::ringBufBuf_9 INVERSELIB::ringBufBufRec_9
typedef struct INVERSELIB::ringBuf_9 INVERSELIB::ringBufRec_9

Functions

void fromFloatEigenMatrix_9 (const Eigen::MatrixXf &from_mat, float **&to_mat, const int m, const int n)
void fromFloatEigenMatrix_9 (const Eigen::MatrixXf &from_mat, float **&to_mat)
void mne_free_cmatrix_9 (float **m)
float ** mne_cmatrix_9 (int nr, int nc)
void mne_free_ring_buffer_9 (void *thisp)
void mne_ch_selection_free_9 (mneChSelection s)
void mne_string_to_name_list_9 (const QString &s, QStringList &listp, int &nlistp)
QString mne_name_list_to_string_9 (const QStringList &list)
QString mne_channel_names_to_string_9 (const QList< FIFFLIB::FiffChInfo > &chs, int nch)
void mne_channel_names_to_name_list_9 (const QList< FIFFLIB::FiffChInfo > &chs, int nch, QStringList &listp, int &nlistp)
int mne_find_evoked_types_comments (FiffStream::SPtr &stream, QList< FiffDirNode::SPtr > &nodesp, int **aspect_typesp, QStringList *commentsp)
QList< FiffDirNode::SPtrmne_find_evoked (FiffStream::SPtr &stream, QStringList *commentsp)
int mne_read_evoked (const QString &name, int setno, int *nchanp, int *nsampp, float *tminp, float *sfreqp, QList< FiffChInfo > &chsp, float ***epochsp, QString *commentp, float *highpassp, float *lowpassp, int *navep, int *aspect_kindp, FiffCoordTrans *transp, fiffId *idp, FiffTime **meas_datep)
char * mne_format_file_id (fiffId id)
int mne_read_meg_comp_eeg_ch_info_9 (const QString &name, QList< FiffChInfo > &megp, int *nmegp, QList< FiffChInfo > &meg_compp, int *nmeg_compp, QList< FiffChInfo > &eegp, int *neegp, FiffCoordTrans *meg_head_t, fiffId *idp)
int mne_read_bad_channel_list_from_node_9 (FiffStream::SPtr &stream, const FiffDirNode::SPtr &pNode, QStringList &listp, int &nlistp)
int mne_read_bad_channel_list_9 (const QString &name, QStringList &listp, int &nlistp)

Detailed Description

Definition of the MNE Meas Data (MNEMeasData) Class.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.0
Date
January, 2017

LICENSE

Copyright (C) 2017, Lorenz Esch, Matti Hamalainen, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of MNE-CPP authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file mne_meas_data.cpp.

Macro Definition Documentation

◆ ALLOC_CMATRIX_9

#define ALLOC_CMATRIX_9 ( x,
y )
Value:
mne_cmatrix_9((x),(y))
float ** mne_cmatrix_9(int nr, int nc)

Definition at line 96 of file mne_meas_data.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 74 of file mne_meas_data.cpp.

◆ FALSE

#define FALSE   0

Definition at line 70 of file mne_meas_data.cpp.

◆ FREE_9

#define FREE_9 ( x)
Value:
if ((char *)(x) != NULL) free((char *)(x))

Definition at line 94 of file mne_meas_data.cpp.

◆ FREE_CMATRIX_9

#define FREE_CMATRIX_9 ( m)
Value:
void mne_free_cmatrix_9(float **m)

Definition at line 98 of file mne_meas_data.cpp.

◆ MALLOC_9

#define MALLOC_9 ( x,
t )
Value:
(t *)malloc((x)*sizeof(t))

Definition at line 91 of file mne_meas_data.cpp.

◆ MAX

#define MAX ( a,
b )
Value:
((a) > (b) ? (a) : (b))

Definition at line 89 of file mne_meas_data.cpp.

◆ MAXBUF

#define MAXBUF   200

Definition at line 1245 of file mne_meas_data.cpp.

◆ MAXDATE

#define MAXDATE   100

Definition at line 310 of file mne_meas_data.cpp.

◆ MIN

#define MIN ( a,
b )
Value:
((a) < (b) ? (a) : (b))

Definition at line 88 of file mne_meas_data.cpp.

◆ OK

#define OK   0

Definition at line 78 of file mne_meas_data.cpp.

◆ REALLOC_9

#define REALLOC_9 ( x,
y,
t )
Value:
(t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))

Definition at line 92 of file mne_meas_data.cpp.

◆ TRUE

#define TRUE   1

Definition at line 66 of file mne_meas_data.cpp.

Function Documentation

◆ fromFloatEigenMatrix_9() [1/2]

void fromFloatEigenMatrix_9 ( const Eigen::MatrixXf & from_mat,
float **& to_mat )

Definition at line 107 of file mne_meas_data.cpp.

◆ fromFloatEigenMatrix_9() [2/2]

void fromFloatEigenMatrix_9 ( const Eigen::MatrixXf & from_mat,
float **& to_mat,
const int m,
const int n )

Definition at line 100 of file mne_meas_data.cpp.

◆ mne_ch_selection_free_9()

void mne_ch_selection_free_9 ( mneChSelection s)

Definition at line 195 of file mne_meas_data.cpp.

◆ mne_channel_names_to_name_list_9()

void mne_channel_names_to_name_list_9 ( const QList< FIFFLIB::FiffChInfo > & chs,
int nch,
QStringList & listp,
int & nlistp )

Definition at line 258 of file mne_meas_data.cpp.

◆ mne_channel_names_to_string_9()

QString mne_channel_names_to_string_9 ( const QList< FIFFLIB::FiffChInfo > & chs,
int nch )

Definition at line 242 of file mne_meas_data.cpp.

◆ mne_cmatrix_9()

float ** mne_cmatrix_9 ( int nr,
int nc )

Definition at line 137 of file mne_meas_data.cpp.

◆ mne_find_evoked()

QList< FiffDirNode::SPtr > mne_find_evoked ( FiffStream::SPtr & stream,
QStringList * commentsp )

Definition at line 1011 of file mne_meas_data.cpp.

◆ mne_find_evoked_types_comments()

int mne_find_evoked_types_comments ( FiffStream::SPtr & stream,
QList< FiffDirNode::SPtr > & nodesp,
int ** aspect_typesp,
QStringList * commentsp )

Definition at line 925 of file mne_meas_data.cpp.

◆ mne_format_file_id()

char * mne_format_file_id ( fiffId id)

Definition at line 1247 of file mne_meas_data.cpp.

◆ mne_free_cmatrix_9()

void mne_free_cmatrix_9 ( float ** m)

Definition at line 112 of file mne_meas_data.cpp.

◆ mne_free_ring_buffer_9()

void mne_free_ring_buffer_9 ( void * thisp)

Definition at line 177 of file mne_meas_data.cpp.

◆ mne_name_list_to_string_9()

QString mne_name_list_to_string_9 ( const QStringList & list)

Definition at line 224 of file mne_meas_data.cpp.

◆ mne_read_bad_channel_list_9()

int mne_read_bad_channel_list_9 ( const QString & name,
QStringList & listp,
int & nlistp )

Definition at line 1456 of file mne_meas_data.cpp.

◆ mne_read_bad_channel_list_from_node_9()

int mne_read_bad_channel_list_from_node_9 ( FiffStream::SPtr & stream,
const FiffDirNode::SPtr & pNode,
QStringList & listp,
int & nlistp )

Definition at line 1426 of file mne_meas_data.cpp.

◆ mne_read_evoked()

int mne_read_evoked ( const QString & name,
int setno,
int * nchanp,
int * nsampp,
float * tminp,
float * sfreqp,
QList< FiffChInfo > & chsp,
float *** epochsp,
QString * commentp,
float * highpassp,
float * lowpassp,
int * navep,
int * aspect_kindp,
FiffCoordTrans * transp,
fiffId * idp,
FiffTime ** meas_datep )

Definition at line 1065 of file mne_meas_data.cpp.

◆ mne_read_meg_comp_eeg_ch_info_9()

int mne_read_meg_comp_eeg_ch_info_9 ( const QString & name,
QList< FiffChInfo > & megp,
int * nmegp,
QList< FiffChInfo > & meg_compp,
int * nmeg_compp,
QList< FiffChInfo > & eegp,
int * neegp,
FiffCoordTrans * meg_head_t,
fiffId * idp )

Definition at line 1263 of file mne_meas_data.cpp.

◆ mne_string_to_name_list_9()

void mne_string_to_name_list_9 ( const QString & s,
QStringList & listp,
int & nlistp )

Definition at line 208 of file mne_meas_data.cpp.