v2.0.0
Loading...
Searching...
No Matches
crosscorrelation.h
Go to the documentation of this file.
1//=============================================================================================================
33
34#ifndef CROSSCORRELATION_H
35#define CROSSCORRELATION_H
36
37//=============================================================================================================
38// INCLUDES
39//=============================================================================================================
40
42
43#include "abstractmetric.h"
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QSharedPointer>
51#include <QMutex>
52
53//=============================================================================================================
54// EIGEN INCLUDES
55//=============================================================================================================
56
57#include <Eigen/Core>
58
59//=============================================================================================================
60// FORWARD DECLARATIONS
61//=============================================================================================================
62
63//=============================================================================================================
64// DEFINE NAMESPACE CONNECTIVITYLIB
65//=============================================================================================================
66
67namespace CONNECTIVITYLIB
68{
69
70//=============================================================================================================
71// CONNECTIVITYLIB FORWARD DECLARATIONS
72//=============================================================================================================
73
74class Network;
75
76//=============================================================================================================
92{
93public:
94 typedef QSharedPointer<CrossCorrelation> SPtr;
95 typedef QSharedPointer<const CrossCorrelation> ConstSPtr;
96
97 //=========================================================================================================
101 explicit CrossCorrelation();
102
103 //=========================================================================================================
111 static Network calculate(ConnectivitySettings& connectivitySettings);
112
113protected:
114 //=========================================================================================================
125 Eigen::MatrixXd& matDist,
126 QMutex& mutex,
127 int iNfft,
128 const QPair<Eigen::MatrixXd, Eigen::VectorXd>& tapers);
129};
130
131//=============================================================================================================
132// INLINE DEFINITIONS
133//=============================================================================================================
134} // namespace CONNECTIVITYLIB
135
136#endif // CROSSCORRELATION_H
Export/import macros for the CONNECTIVITYLIB functional-connectivity library.
#define CONNECTIVITYSHARED_EXPORT
Input-data and parameter container shared by every functional-connectivity metric in CONNECTIVITYLIB.
Common static knobs shared by every functional-connectivity estimator in CONNECTIVITYLIB.
Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).
Aggregates trial data, spectral cache and node geometry shared by all CONNECTIVITYLIB metrics.
Per-trial intermediate frequency-domain data used during connectivity computation.
QSharedPointer< CrossCorrelation > SPtr
QSharedPointer< const CrossCorrelation > ConstSPtr
static Network calculate(ConnectivitySettings &connectivitySettings)
static void compute(ConnectivitySettings::IntermediateTrialData &inputData, Eigen::MatrixXd &matDist, QMutex &mutex, int iNfft, const QPair< Eigen::MatrixXd, Eigen::VectorXd > &tapers)
Graph container for one connectivity metric; nodes + weighted edges + threshold/visualisation state.
Definition network.h:106