MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
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
68namespace CONNECTIVITYLIB {
69
70//=============================================================================================================
71// CONNECTIVITYLIB FORWARD DECLARATIONS
72//=============================================================================================================
73
74class Network;
75
76//=============================================================================================================
83{
84
85public:
86 typedef QSharedPointer<CrossCorrelation> SPtr;
87 typedef QSharedPointer<const CrossCorrelation> ConstSPtr;
89 //=========================================================================================================
93 explicit CrossCorrelation();
94
95 //=========================================================================================================
103 static Network calculate(ConnectivitySettings &connectivitySettings);
104
105protected:
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
#define CONNECTIVITYSHARED_EXPORT
AbstractMetric class declaration.
This class is a container for connectivity settings.
This class provides basic functionalities for all implemented metrics.
This class computes the cross correlation connectivity metric.
QSharedPointer< CrossCorrelation > SPtr
QSharedPointer< const CrossCorrelation > ConstSPtr
This class holds information about a network, can compute a distance table and provide network metric...
Definition network.h:89