MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
mne_meas_data_set.cpp
Go to the documentation of this file.
1//=============================================================================================================
37//=============================================================================================================
38// INCLUDES
39//=============================================================================================================
40
41#include "mne_meas_data_set.h"
42#include <mne/c/mne_mne_data.h>
43
44#include <fiff/fiff_file.h>
45
46//=============================================================================================================
47// USED NAMESPACES
48//=============================================================================================================
49
50using namespace Eigen;
51using namespace INVERSELIB;
52using namespace FIFFLIB;
53
54#define FREE_8(x) if ((char *)(x) != NULL) free((char *)(x))
55
56#define FREE_CMATRIX_8(m) mne_free_cmatrix_8((m))
57
58void mne_free_cmatrix_8 (float **m)
59{
60 if (m) {
61 FREE_8(*m);
62 FREE_8(m);
63 }
64}
65
66//=============================================================================================================
67// DEFINE MEMBER METHODS
68//=============================================================================================================
69
71:data(NULL)
72,data_filt(NULL)
73,data_proj(NULL)
74,data_white(NULL)
75,stim14(NULL)
76,first(0)
77,np(0)
78,nave(1)
80,baselines(NULL)
81,mne(NULL)
82,user_data(NULL)
83,user_data_free(NULL)
84{
85}
86
87//=============================================================================================================
88
90{
91 FREE_CMATRIX_8(data);
92 FREE_CMATRIX_8(data_proj);
93 FREE_CMATRIX_8(data_filt);
94 FREE_CMATRIX_8(data_white);
95 FREE_8(stim14);
96 comment.clear();
97 FREE_8(baselines);
98 if(mne)
99 delete mne;
100 if (user_data && user_data_free)
101 user_data_free(user_data);
102}
Header file describing the numerical values used in fif files.
#define FIFFV_ASPECT_AVERAGE
Definition fiff_file.h:438
MNE MNE Data (MneMneData) class declaration.
MNE Meas Data Set (MneMeasDataSet) class declaration.