MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
correlation.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef CORRELATION_H
36#define CORRELATION_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
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;
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
#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 correlation metric.
Definition correlation.h:82
QSharedPointer< const Correlation > ConstSPtr
Definition correlation.h:86
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:89