MNE-CPP  beta 1.0
main.cpp
1 //=============================================================================================================
38 //*************************************************************************************************************
39 //=============================================================================================================
40 // INCLUDES
41 //=============================================================================================================
42 
43 #include <iostream>
44 #include <vector>
45 #include <math.h>
46 
47 
48 #include <fiff/fiff.h>
49 #include <mne/mne.h>
50 
51 
52 //*************************************************************************************************************
53 //=============================================================================================================
54 // QT INCLUDES
55 //=============================================================================================================
56 
57 #include <QtCore/QCoreApplication>
58 
59 
60 //*************************************************************************************************************
61 //=============================================================================================================
62 // USED NAMESPACES
63 //=============================================================================================================
64 
65 using namespace FIFFLIB;
66 using namespace MNELIB;
67 
68 
69 //*************************************************************************************************************
70 //=============================================================================================================
71 // MAIN
72 //=============================================================================================================
73 
74 //=============================================================================================================
83 int main(int argc, char *argv[])
84 {
85  QCoreApplication a(argc, argv);
86 
87  //generate FiffEvokedSet
88  QFile t_sampleFile("./MNE-sample-data/MEG/sample/sample_audvis-ave.fif");
89  FiffEvokedSet p_FiffEvokedSet(t_sampleFile);
90 
91  //run find_evoked function
92  p_FiffEvokedSet.find_evoked(p_FiffEvokedSet);
93 
94  return a.exec();
95 }
96 
97 //*************************************************************************************************************
98 //=============================================================================================================
99 // STATIC DEFINITIONS
100 //=============================================================================================================
Definition: fiff.h:98
evoked data set
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...