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// CONNECTIVITYLIB FORWARD DECLARATIONS
63//=============================================================================================================
64
65class NetworkNode;
66
67//=============================================================================================================
80
82{
83
84public:
85 typedef QSharedPointer<NetworkEdge> SPtr;
86 typedef QSharedPointer<const NetworkEdge> ConstSPtr;
87
88 //=========================================================================================================
99 explicit NetworkEdge(int iStartNodeID,
100 int iEndNodeID,
101 const Eigen::MatrixXd& matWeight,
102 bool bIsActive = true,
103 int iStartWeightBin = -1,
104 int iEndWeightBin = -1);
105
106 //=========================================================================================================
112 int getStartNodeID();
113
114 //=========================================================================================================
120 int getEndNodeID();
121
122 //=========================================================================================================
128 void setActive(bool bActiveFlag);
129
130 //=========================================================================================================
136 bool isActive();
137
138 //=========================================================================================================
144 double getWeight() const;
145
146 //=========================================================================================================
152 Eigen::MatrixXd getMatrixWeight() const;
153
154 //=========================================================================================================
160 void setWeight(double dAveragedWeight);
161
162 //=========================================================================================================
167
168 //=========================================================================================================
174 void setFrequencyBins(const QPair<int, int> &minMaxFreqBins);
175
176 //=========================================================================================================
182 const QPair<int,int>& getFrequencyBins();
183
184protected:
187
189
190 QPair<int,int> m_iMinMaxFreqBins;
191
192 Eigen::MatrixXd m_matWeight;
193
195};
196
197//=============================================================================================================
198// INLINE DEFINITIONS
199//=============================================================================================================
200
201} // namespace CONNECTIVITYLIB
202
203#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)
Eigen::MatrixXd getMatrixWeight() const
const QPair< int, int > & getFrequencyBins()
QSharedPointer< const NetworkEdge > ConstSPtr
Definition networkedge.h:86
QSharedPointer< NetworkEdge > SPtr
Definition networkedge.h:85
QPair< int, int > m_iMinMaxFreqBins
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:80