MNE-CPP  0.1.9
A Framework for Electrophysiology
crosscorrelation.h
Go to the documentation of this file.
1 //=============================================================================================================
35 #ifndef CROSSCORRELATION_H
36 #define CROSSCORRELATION_H
37 
38 //=============================================================================================================
39 // INCLUDES
40 //=============================================================================================================
41 
42 #include "../connectivity_global.h"
43 
44 #include "abstractmetric.h"
45 #include "../connectivitysettings.h"
46 
47 //=============================================================================================================
48 // QT INCLUDES
49 //=============================================================================================================
50 
51 #include <QSharedPointer>
52 #include <QMutex>
53 
54 //=============================================================================================================
55 // EIGEN INCLUDES
56 //=============================================================================================================
57 
58 #include <Eigen/Core>
59 
60 //=============================================================================================================
61 // FORWARD DECLARATIONS
62 //=============================================================================================================
63 
64 //=============================================================================================================
65 // DEFINE NAMESPACE CONNECTIVITYLIB
66 //=============================================================================================================
67 
68 namespace CONNECTIVITYLIB {
69 
70 //=============================================================================================================
71 // CONNECTIVITYLIB FORWARD DECLARATIONS
72 //=============================================================================================================
73 
74 class Network;
75 
76 //=============================================================================================================
83 {
84 
85 public:
86  typedef QSharedPointer<CrossCorrelation> SPtr;
87  typedef QSharedPointer<const CrossCorrelation> ConstSPtr;
89  //=========================================================================================================
93  explicit CrossCorrelation();
94 
95  //=========================================================================================================
103  static Network calculate(ConnectivitySettings &connectivitySettings);
104 
105 protected:
106  //=========================================================================================================
116  static void compute(ConnectivitySettings::IntermediateTrialData& inputData,
117  Eigen::MatrixXd& matDist,
118  QMutex& mutex,
119  int iNfft,
120  const QPair<Eigen::MatrixXd, Eigen::VectorXd>& tapers);
121 };
122 
123 //=============================================================================================================
124 // INLINE DEFINITIONS
125 //=============================================================================================================
126 } // namespace CONNECTIVITYLIB
127 
128 #endif // CROSSCORRELATION_H
CONNECTIVITYLIB::ConnectivitySettings::IntermediateTrialData
Definition: connectivitysettings.h:98
CONNECTIVITYLIB::Network
This class holds information about a network, can compute a distance table and provide network metric...
Definition: network.h:88
CONNECTIVITYLIB::AbstractMetric
This class provides basic functionalities for all implemented metrics.
Definition: abstractmetric.h:77
CONNECTIVITYLIB::CrossCorrelation::SPtr
QSharedPointer< CrossCorrelation > SPtr
Definition: crosscorrelation.h:86
CONNECTIVITYLIB::CrossCorrelation
This class computes the cross correlation connectivity metric.
Definition: crosscorrelation.h:82
CONNECTIVITYSHARED_EXPORT
#define CONNECTIVITYSHARED_EXPORT
Definition: connectivity_global.h:54
CONNECTIVITYLIB::ConnectivitySettings
This class is a container for connectivity settings.
Definition: connectivitysettings.h:91
CONNECTIVITYLIB::CrossCorrelation::ConstSPtr
QSharedPointer< const CrossCorrelation > ConstSPtr
Definition: crosscorrelation.h:87
abstractmetric.h
AbstractMetric class declaration.