MNE-CPP  0.1.9
A Framework for Electrophysiology
Classes | Macros | Typedefs | Functions
mne_raw_data.cpp File Reference

Definition of the MneRawData Class. More...

#include "mne_raw_data.h"
#include <QFile>
#include <Eigen/Core>
#include <math.h>
Include dependency graph for mne_raw_data.cpp:

Go to the source code of this file.

Classes

struct  MNELIB::ringBufBuf_36
 
struct  MNELIB::ringBuf_36
 
struct  MNELIB::filterData
 
struct  MNELIB::ringBufBuf
 
struct  MNELIB::ringBuf
 

Macros

#define _USE_MATH_DEFINES
 
#define TRUE   1
 
#define FALSE   0
 
#define FAIL   -1
 
#define OK   0
 
#define MALLOC_36(x, t)   (t *)malloc((x)*sizeof(t))
 
#define REALLOC_36(x, y, t)   (t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))
 
#define ALLOC_CMATRIX_36(x, y)   mne_cmatrix_36((x),(y))
 
#define FREE_36(x)   if ((char *)(x) != NULL) free((char *)(x))
 
#define FREE_CMATRIX_36(m)   mne_free_cmatrix_36((m))
 
#define APPROX_RING_BUF_SIZE   (600*1024*1024)
 

Typedefs

typedef struct MNELIB::ringBufBuf_36 MNELIB::ringBufBufRec_36
 
typedef struct MNELIB::ringBuf_36 MNELIB::ringBufRec_36
 
typedef struct MNELIB::filterData MNELIB::filterDataRec
 
typedef struct MNELIB::ringBufBuf MNELIB::ringBufBufRec
 
typedef struct MNELIB::ringBuf MNELIB::ringBufRec
 

Functions

float ** mne_cmatrix_36 (int nr, int nc)
 
void mne_free_cmatrix_36 (float **m)
 
void mne_free_ring_buffer_36 (void *thisp)
 
void mne_free_event (mneEvent e)
 
void mne_free_event_list_36 (mneEventList list)
 
void mne_free_name_list_36 (char **list, int nlist)
 
void mne_string_to_name_list (const QString &s, QStringList &listp, int &nlistp)
 
QString mne_name_list_to_string (const QStringList &list)
 
QString mne_channel_names_to_string (const QList< FIFFLIB::FiffChInfo > &chs, int nch)
 
void mne_channel_names_to_name_list (const QList< FIFFLIB::FiffChInfo > &chs, int nch, QStringList &listp, int &nlistp)
 
int mne_compare_filters (mneFilterDef f1, mneFilterDef f2)
 
void mne_fft_ana (float *data, int np, float **precalcp)
 
void mne_fft_syn (float *data, int np, float **precalcp)
 
int mne_apply_filter (mneFilterDef filter, void *datap, float *data, int ns, int zero_pad, float dc_offset, int kind)
 
void mne_create_filter_response (mneFilterDef filter, float sfreq, void **filter_datap, mneUserFreeFunc *filter_data_freep, int *highpass_effective)
 
void mne_free_ring_buffer (void *thisp)
 
void * mne_initialize_ring (int nbuf)
 
void mne_allocate_from_ring (void *ringp, int nrow, int ncol, float ***res)
 
int mne_read_raw_buffer_t (FiffStream::SPtr &stream, const FiffDirEntry::SPtr &ent, float **data, int nchan, int nsamp, const QList< FIFFLIB::FiffChInfo > &chs, int *pickno, int npick)
 
int mne_read_bad_channel_list_from_node (FiffStream::SPtr &stream, const FiffDirNode::SPtr &pNode, QStringList &listp, int &nlistp)
 
int mne_read_bad_channel_list (const QString &name, QStringList &listp, int &nlistp)
 
int mne_sparse_vec_mult2 (FiffSparseMatrix *mat, float *vector, float *res)
 
int mne_sparse_mat_mult2 (FiffSparseMatrix *mat, float **mult, int ncol, float **res)
 

Detailed Description

Definition of the MneRawData 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:

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_raw_data.cpp.