v2.0.0
Loading...
Searching...
No Matches
networkedge.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef NETWORKEDGE_H
36#define NETWORKEDGE_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../conn_global.h"
43
44//=============================================================================================================
45// QT INCLUDES
46//=============================================================================================================
47
48#include <QSharedPointer>
49
50//=============================================================================================================
51// EIGEN INCLUDES
52//=============================================================================================================
53
54#include<Eigen/Core>
55
56//=============================================================================================================
57// FORWARD DECLARATIONS
58//=============================================================================================================
59
60//=============================================================================================================
61// DEFINE NAMESPACE CONNLIB
62//=============================================================================================================
63
64namespace CONNLIB {
65
66//=============================================================================================================
67// CONNLIB FORWARD DECLARATIONS
68//=============================================================================================================
69
70class NetworkNode;
71
72//=============================================================================================================
78
80{
81
82public:
83 typedef QSharedPointer<NetworkEdge> SPtr;
84 typedef QSharedPointer<const NetworkEdge> ConstSPtr;
85
86 //=========================================================================================================
97 explicit NetworkEdge(int iStartNodeID,
98 int iEndNodeID,
99 const Eigen::MatrixXd& matWeight,
100 bool bIsActive = true,
101 int iStartWeightBin = -1,
102 int iEndWeightBin = -1);
103
104 //=========================================================================================================
110 int getStartNodeID();
111
112 //=========================================================================================================
118 int getEndNodeID();
119
120 //=========================================================================================================
126 void setActive(bool bActiveFlag);
127
128 //=========================================================================================================
134 bool isActive();
135
136 //=========================================================================================================
142 double getWeight() const;
143
144 //=========================================================================================================
150 Eigen::MatrixXd getMatrixWeight() const;
151
152 //=========================================================================================================
158 void setWeight(double dAveragedWeight);
159
160 //=========================================================================================================
165
166 //=========================================================================================================
172 void setFrequencyBins(const QPair<int, int> &minMaxFreqBins);
173
174 //=========================================================================================================
180 const QPair<int,int>& getFrequencyBins();
181
182protected:
185
187
188 QPair<int,int> m_iMinMaxFreqBins;
189
190 Eigen::MatrixXd m_matWeight;
191
193};
194
195//=============================================================================================================
196// INLINE DEFINITIONS
197//=============================================================================================================
198
199} // namespace CONNLIB
200
201#endif // NETWORKEDGE_H
conn library export/import macros.
#define CONNSHARED_EXPORT
Definition conn_global.h:50
Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).
void setFrequencyBins(const QPair< int, int > &minMaxFreqBins)
Eigen::MatrixXd m_matWeight
double getWeight() const
Eigen::MatrixXd getMatrixWeight() const
QSharedPointer< const NetworkEdge > ConstSPtr
Definition networkedge.h:84
const QPair< int, int > & getFrequencyBins()
QSharedPointer< NetworkEdge > SPtr
Definition networkedge.h:83
void setWeight(double dAveragedWeight)
NetworkEdge(int iStartNodeID, int iEndNodeID, const Eigen::MatrixXd &matWeight, bool bIsActive=true, int iStartWeightBin=-1, int iEndWeightBin=-1)
QPair< int, int > m_iMinMaxFreqBins
void setActive(bool bActiveFlag)
This class holds an object to describe the node of a network.
Definition networknode.h:82