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

Definition of the MNERawData Class. More...

#include "mne_raw_data.h"
#include <QFile>
#include <QDebug>
#include <QTextStream>
#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::RingBuffer
 Circular ring buffer for managing raw-data matrix allocations. More...
struct  MNELIB::RingBuffer::Entry
struct  MNELIB::FilterData
 Pre-computed frequency-domain filter state used for FFT-based raw data filtering. More...

Namespaces

namespace  MNELIB
 Core MNE data structures (source spaces, source estimates, hemispheres).

Macros

#define _USE_MATH_DEFINES
#define APPROX_RING_BUF_SIZE   (600*1024*1024)

Typedefs

using MNELIB::RowMajorMatrixXf = Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>

Functions

int mne_compare_filters (const MNEFilterDef &f1, const MNEFilterDef &f2)
void mne_fft_ana (float *data, int np, std::vector< float > &)
void mne_fft_syn (float *data, int np, std::vector< float > &)
int mne_apply_filter (const MNEFilterDef &filter, FilterData *d, float *data, int ns, int zero_pad, float dc_offset, int kind)
std::unique_ptr< FilterDatamne_create_filter_response (const MNEFilterDef &filter, float sfreq, int *highpass_effective)
int mne_read_raw_buffer_t (FiffStream::SPtr &stream, const FiffDirEntry::SPtr &ent, RowMajorMatrixXf &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, const RowMajorMatrixXf &mult, int ncol, RowMajorMatrixXf &res)

Variables

constexpr int FAIL = -1
constexpr int OK = 0

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:

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

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 49 of file mne_raw_data.cpp.

◆ APPROX_RING_BUF_SIZE

#define APPROX_RING_BUF_SIZE   (600*1024*1024)

Definition at line 517 of file mne_raw_data.cpp.

Function Documentation

◆ mne_apply_filter()

int mne_apply_filter ( const MNEFilterDef & filter,
FilterData * d,
float * data,
int ns,
int zero_pad,
float dc_offset,
int kind )

Definition at line 183 of file mne_raw_data.cpp.

◆ mne_compare_filters()

int mne_compare_filters ( const MNEFilterDef & f1,
const MNEFilterDef & f2 )

Definition at line 139 of file mne_raw_data.cpp.

◆ mne_create_filter_response()

std::unique_ptr< FilterData > mne_create_filter_response ( const MNEFilterDef & filter,
float sfreq,
int * highpass_effective )

Definition at line 253 of file mne_raw_data.cpp.

◆ mne_fft_ana()

void mne_fft_ana ( float * data,
int np,
std::vector< float > &  )

Definition at line 161 of file mne_raw_data.cpp.

◆ mne_fft_syn()

void mne_fft_syn ( float * data,
int np,
std::vector< float > &  )

Definition at line 172 of file mne_raw_data.cpp.

◆ mne_read_bad_channel_list()

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

Definition at line 471 of file mne_raw_data.cpp.

◆ mne_read_bad_channel_list_from_node()

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

Definition at line 440 of file mne_raw_data.cpp.

◆ mne_read_raw_buffer_t()

int mne_read_raw_buffer_t ( FiffStream::SPtr & stream,
const FiffDirEntry::SPtr & ent,
RowMajorMatrixXf & data,
int nchan,
int nsamp,
const QList< FIFFLIB::FiffChInfo > & chs,
int * pickno,
int npick )

Definition at line 354 of file mne_raw_data.cpp.

◆ mne_sparse_mat_mult2()

int mne_sparse_mat_mult2 ( FiffSparseMatrix * mat,
const RowMajorMatrixXf & mult,
int ncol,
RowMajorMatrixXf & res )

Definition at line 502 of file mne_raw_data.cpp.

◆ mne_sparse_vec_mult2()

int mne_sparse_vec_mult2 ( FiffSparseMatrix * mat,
float * vector,
float * res )

Definition at line 489 of file mne_raw_data.cpp.

Variable Documentation

◆ FAIL

int FAIL = -1
constexpr

Definition at line 60 of file mne_raw_data.cpp.

◆ OK

int OK = 0
constexpr

Definition at line 61 of file mne_raw_data.cpp.