v2.0.0
Loading...
Searching...
No Matches
networknode.h
Go to the documentation of this file.
1//=============================================================================================================
29
30#ifndef NETWORKNODE_H
31#define NETWORKNODE_H
32
33//=============================================================================================================
34// INCLUDES
35//=============================================================================================================
36
38
39//=============================================================================================================
40// QT INCLUDES
41//=============================================================================================================
42
43#include <QObject>
44#include <QSharedPointer>
45
46//=============================================================================================================
47// EIGEN INCLUDES
48//=============================================================================================================
49
50#include <Eigen/Core>
51
52//=============================================================================================================
53// FORWARD DECLARATIONS
54//=============================================================================================================
55
56//=============================================================================================================
57// DEFINE NAMESPACE CONNECTIVITYLIB
58//=============================================================================================================
59
60namespace CONNECTIVITYLIB
61{
62
63//=============================================================================================================
64// CONNECTIVITYLIB FORWARD DECLARATIONS
65//=============================================================================================================
66
67class NetworkEdge;
68
69//=============================================================================================================
81
83{
84public:
85 typedef QSharedPointer<NetworkNode> SPtr;
86 typedef QSharedPointer<const NetworkNode> ConstSPtr;
87
88 //=========================================================================================================
95 explicit NetworkNode(qint16 iId, const Eigen::RowVectorXf& vecVert);
96
97 //=========================================================================================================
103 const QList<QSharedPointer<NetworkEdge>>& getFullEdges() const;
104
105 //=========================================================================================================
111 QList<QSharedPointer<NetworkEdge>> getThresholdedEdges() const;
112
113 //=========================================================================================================
119 QList<QSharedPointer<NetworkEdge>> getFullEdgesIn() const;
120
121 //=========================================================================================================
127 QList<QSharedPointer<NetworkEdge>> getThresholdedEdgesIn() const;
128
129 //=========================================================================================================
135 QList<QSharedPointer<NetworkEdge>> getFullEdgesOut() const;
136
137 //=========================================================================================================
143 QList<QSharedPointer<NetworkEdge>> getThresholdedEdgesOut() const;
144
145 //=========================================================================================================
151 const Eigen::RowVectorXf& getVert() const;
152
153 //=========================================================================================================
159 qint16 getId() const;
160
161 //=========================================================================================================
167 qint16 getFullDegree() const;
168
169 //=========================================================================================================
175 qint16 getThresholdedDegree() const;
176
177 //=========================================================================================================
183 qint16 getFullIndegree() const;
184
185 //=========================================================================================================
191 qint16 getThresholdedIndegree() const;
192
193 //=========================================================================================================
199 qint16 getFullOutdegree() const;
200
201 //=========================================================================================================
207 qint16 getThresholdedOutdegree() const;
208
209 //=========================================================================================================
215 double getFullStrength() const;
216
217 //=========================================================================================================
223 double getThresholdedStrength() const;
224
225 //=========================================================================================================
231 double getFullInstrength() const;
232
233 //=========================================================================================================
239 double getThresholdedInstrength() const;
240
241 //=========================================================================================================
247 double getFullOutstrength() const;
248
249 //=========================================================================================================
255 double getThresholdedOutstrength() const;
256
257 //=========================================================================================================
263 void setHubStatus(bool bIsHub);
264
265 //=========================================================================================================
271 bool getHubStatus() const;
272
273 //=========================================================================================================
279 void append(QSharedPointer<NetworkEdge> newEdge);
280
281protected:
282 bool m_bIsHub;
283
284 qint16 m_iId;
285
286 Eigen::RowVectorXf m_vecVert;
287
288 QList<QSharedPointer<NetworkEdge>> m_lEdges;
289};
290
291//=============================================================================================================
292// INLINE DEFINITIONS
293//=============================================================================================================
294} // namespace CONNECTIVITYLIB
295
296#endif // NETWORKNODE_H
Export/import macros for the CONNECTIVITYLIB functional-connectivity library.
#define CONNECTIVITYSHARED_EXPORT
Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).
Weighted, directional edge in a Network; carries per-frequency weights plus a band-averaged scalar.
Definition networkedge.h:85
double getThresholdedOutstrength() const
qint16 getThresholdedIndegree() const
qint16 getThresholdedOutdegree() const
QSharedPointer< const NetworkNode > ConstSPtr
Definition networknode.h:86
QList< QSharedPointer< NetworkEdge > > getThresholdedEdges() const
qint16 getThresholdedDegree() const
double getThresholdedStrength() const
void setHubStatus(bool bIsHub)
NetworkNode(qint16 iId, const Eigen::RowVectorXf &vecVert)
void append(QSharedPointer< NetworkEdge > newEdge)
QList< QSharedPointer< NetworkEdge > > getFullEdgesOut() const
QList< QSharedPointer< NetworkEdge > > getThresholdedEdgesOut() const
double getThresholdedInstrength() const
QSharedPointer< NetworkNode > SPtr
Definition networknode.h:85
QList< QSharedPointer< NetworkEdge > > m_lEdges
QList< QSharedPointer< NetworkEdge > > getFullEdgesIn() const
const Eigen::RowVectorXf & getVert() const
Eigen::RowVectorXf m_vecVert
const QList< QSharedPointer< NetworkEdge > > & getFullEdges() const
QList< QSharedPointer< NetworkEdge > > getThresholdedEdgesIn() const