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// CONNECTIVITYLIB FORWARD DECLARATIONS
71//=============================================================================================================
72
73class Network;
74
75//=============================================================================================================
89{
90
91public:
92 typedef QSharedPointer<CrossCorrelation> SPtr;
93 typedef QSharedPointer<const CrossCorrelation> ConstSPtr;
94
95 //=========================================================================================================
99 explicit CrossCorrelation();
100
101 //=========================================================================================================
109 static Network calculate(ConnectivitySettings &connectivitySettings);
110
111protected:
112 //=========================================================================================================
123 Eigen::MatrixXd& matDist,
124 QMutex& mutex,
125 int iNfft,
126 const QPair<Eigen::MatrixXd, Eigen::VectorXd>& tapers);
127};
128
129//=============================================================================================================
130// INLINE DEFINITIONS
131//=============================================================================================================
132} // namespace CONNECTIVITYLIB
133
134#endif // CROSSCORRELATION_H
Common static knobs shared by every functional-connectivity estimator in CONNECTIVITYLIB.
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.
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:98