v2.0.0
Loading...
Searching...
No Matches
correlation.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef CORRELATION_H
36#define CORRELATION_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
43
44#include "abstractmetric.h"
46
47//=============================================================================================================
48// QT INCLUDES
49//=============================================================================================================
50
51#include <QSharedPointer>
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//=============================================================================================================
82{
83
84public:
85 typedef QSharedPointer<Correlation> SPtr;
86 typedef QSharedPointer<const Correlation> ConstSPtr;
87
88 //=========================================================================================================
92 explicit Correlation();
93
94 //=========================================================================================================
102 static Network calculate(ConnectivitySettings &connectivitySettings);
103
104protected:
105 //=========================================================================================================
113 static Eigen::MatrixXd compute(const ConnectivitySettings::IntermediateTrialData& inputData);
114
115 //=========================================================================================================
122 static void reduce(Eigen::MatrixXd &resultData,
123 const Eigen::MatrixXd &data);
124};
125
126//=============================================================================================================
127// INLINE DEFINITIONS
128//=============================================================================================================
129} // namespace CONNECTIVITYLIB
130
131#endif // CORRELATION_H
connectivity library export/import macros.
#define CONNECTIVITYSHARED_EXPORT
AbstractMetric class declaration.
ConnectivitySettings class declaration.
Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).
This class is a container for connectivity settings.
Per-trial intermediate frequency-domain data used during connectivity computation.
static Eigen::MatrixXd compute(const ConnectivitySettings::IntermediateTrialData &inputData)
static Network calculate(ConnectivitySettings &connectivitySettings)
QSharedPointer< const Correlation > ConstSPtr
Definition correlation.h:86
static void reduce(Eigen::MatrixXd &resultData, const Eigen::MatrixXd &data)
QSharedPointer< Correlation > SPtr
Definition correlation.h:85
This class holds information about a network, can compute a distance table and provide network metric...
Definition network.h:92