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// CONNECTIVITYLIB FORWARD DECLARATIONS
64//=============================================================================================================
65
66class NetworkEdge;
67
68//=============================================================================================================
78
80{
81
82public:
83 typedef QSharedPointer<NetworkNode> SPtr;
84 typedef QSharedPointer<const NetworkNode> ConstSPtr;
85
86 //=========================================================================================================
93 explicit NetworkNode(qint16 iId, const Eigen::RowVectorXf& vecVert);
94
95 //=========================================================================================================
101 const QList<QSharedPointer<NetworkEdge> >& getFullEdges() const;
102
103 //=========================================================================================================
109 QList<QSharedPointer<NetworkEdge> > getThresholdedEdges() const;
110
111 //=========================================================================================================
117 QList<QSharedPointer<NetworkEdge> > getFullEdgesIn() const;
118
119 //=========================================================================================================
125 QList<QSharedPointer<NetworkEdge> > getThresholdedEdgesIn() const;
126
127 //=========================================================================================================
133 QList<QSharedPointer<NetworkEdge> > getFullEdgesOut() const;
134
135 //=========================================================================================================
141 QList<QSharedPointer<NetworkEdge> > getThresholdedEdgesOut() const;
142
143 //=========================================================================================================
149 const Eigen::RowVectorXf& getVert() const;
150
151 //=========================================================================================================
157 qint16 getId() const;
158
159 //=========================================================================================================
165 qint16 getFullDegree() const;
166
167 //=========================================================================================================
173 qint16 getThresholdedDegree() const;
174
175 //=========================================================================================================
181 qint16 getFullIndegree() const;
182
183 //=========================================================================================================
189 qint16 getThresholdedIndegree() const;
190
191 //=========================================================================================================
197 qint16 getFullOutdegree() const;
198
199 //=========================================================================================================
205 qint16 getThresholdedOutdegree() const;
206
207 //=========================================================================================================
213 double getFullStrength() const;
214
215 //=========================================================================================================
221 double getThresholdedStrength() const;
222
223 //=========================================================================================================
229 double getFullInstrength() const;
230
231 //=========================================================================================================
237 double getThresholdedInstrength() const;
238
239 //=========================================================================================================
245 double getFullOutstrength() const;
246
247 //=========================================================================================================
253 double getThresholdedOutstrength() const;
254
255 //=========================================================================================================
261 void setHubStatus(bool bIsHub);
262
263 //=========================================================================================================
269 bool getHubStatus() const;
270
271 //=========================================================================================================
277 void append(QSharedPointer<NetworkEdge> newEdge);
278
279protected:
280 bool m_bIsHub;
281
282 qint16 m_iId;
283
284 Eigen::RowVectorXf m_vecVert;
285
286 QList<QSharedPointer<NetworkEdge> > m_lEdges;
287};
288
289//=============================================================================================================
290// INLINE DEFINITIONS
291//=============================================================================================================
292} // namespace CONNECTIVITYLIB
293
294#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:82
double getThresholdedOutstrength() const
qint16 getThresholdedIndegree() const
qint16 getThresholdedOutdegree() const
QSharedPointer< const NetworkNode > ConstSPtr
Definition networknode.h:84
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:83
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