v2.0.0
Loading...
Searching...
No Matches
networkedge.h
Go to the documentation of this file.
1//=============================================================================================================
29
30#ifndef NETWORKEDGE_H
31#define NETWORKEDGE_H
32
33//=============================================================================================================
34// INCLUDES
35//=============================================================================================================
36
38
39//=============================================================================================================
40// QT INCLUDES
41//=============================================================================================================
42
43#include <QSharedPointer>
44
45//=============================================================================================================
46// EIGEN INCLUDES
47//=============================================================================================================
48
49#include <Eigen/Core>
50
51//=============================================================================================================
52// FORWARD DECLARATIONS
53//=============================================================================================================
54
55//=============================================================================================================
56// DEFINE NAMESPACE CONNECTIVITYLIB
57//=============================================================================================================
58
59namespace CONNECTIVITYLIB
60{
61
62//=============================================================================================================
63// CONNECTIVITYLIB FORWARD DECLARATIONS
64//=============================================================================================================
65
66class NetworkNode;
67
68//=============================================================================================================
83
85{
86public:
87 typedef QSharedPointer<NetworkEdge> SPtr;
88 typedef QSharedPointer<const NetworkEdge> ConstSPtr;
89
90 //=========================================================================================================
101 explicit NetworkEdge(int iStartNodeID,
102 int iEndNodeID,
103 const Eigen::MatrixXd& matWeight,
104 bool bIsActive = true,
105 int iStartWeightBin = -1,
106 int iEndWeightBin = -1);
107
108 //=========================================================================================================
114 int getStartNodeID();
115
116 //=========================================================================================================
122 int getEndNodeID();
123
124 //=========================================================================================================
130 void setActive(bool bActiveFlag);
131
132 //=========================================================================================================
138 bool isActive();
139
140 //=========================================================================================================
146 double getWeight() const;
147
148 //=========================================================================================================
154 Eigen::MatrixXd getMatrixWeight() const;
155
156 //=========================================================================================================
162 void setWeight(double dAveragedWeight);
163
164 //=========================================================================================================
169
170 //=========================================================================================================
176 void setFrequencyBins(const QPair<int, int>& minMaxFreqBins);
177
178 //=========================================================================================================
184 const QPair<int, int>& getFrequencyBins();
185
186protected:
189
191
192 QPair<int, int> m_iMinMaxFreqBins;
193
194 Eigen::MatrixXd m_matWeight;
195
197};
198
199//=============================================================================================================
200// INLINE DEFINITIONS
201//=============================================================================================================
202
203} // namespace CONNECTIVITYLIB
204
205#endif // NETWORKEDGE_H
Export/import macros for the CONNECTIVITYLIB functional-connectivity library.
#define CONNECTIVITYSHARED_EXPORT
Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).
void setFrequencyBins(const QPair< int, int > &minMaxFreqBins)
QPair< int, int > m_iMinMaxFreqBins
Eigen::MatrixXd getMatrixWeight() const
const QPair< int, int > & getFrequencyBins()
QSharedPointer< const NetworkEdge > ConstSPtr
Definition networkedge.h:88
QSharedPointer< NetworkEdge > SPtr
Definition networkedge.h:87
void setWeight(double dAveragedWeight)
NetworkEdge(int iStartNodeID, int iEndNodeID, const Eigen::MatrixXd &matWeight, bool bIsActive=true, int iStartWeightBin=-1, int iEndWeightBin=-1)
void setActive(bool bActiveFlag)
Graph node carrying a 3D position and its incident in/out, full/thresholded edge lists.
Definition networknode.h:83