42 #include "../connectivity_global.h"
48 #include <QSharedPointer>
65 namespace CONNECTIVITYLIB {
77 Eigen::Vector4i
colNodes = Eigen::Vector4i(255, 0, 0, 255);
78 Eigen::Vector4i
colEdges = Eigen::Vector4i(255, 0, 0, 255);
92 typedef QSharedPointer<Network>
SPtr;
102 explicit Network(
const QString& sConnectivityMethod =
"Unknown",
103 double dThreshold = 0.0);
115 Eigen::MatrixXd getFullConnectivityMatrix(
bool bGetMirroredVersion =
true)
const;
127 Eigen::MatrixXd getThresholdedConnectivityMatrix(
bool bGetMirroredVersion =
true)
const;
135 const QList<QSharedPointer<NetworkEdge> >& getFullEdges()
const;
143 const QList<QSharedPointer<NetworkEdge> >& getThresholdedEdges()
const;
151 const QList<QSharedPointer<NetworkNode> >& getNodes()
const;
161 QSharedPointer<NetworkEdge> getEdgeAt(
int i);
171 QSharedPointer<NetworkNode> getNodeAt(
int i);
179 qint16 getFullDistribution()
const;
187 qint16 getThresholdedDistribution()
const;
195 void setConnectivityMethod(
const QString& sConnectivityMethod);
203 QString getConnectivityMethod()
const;
211 QPair<double, double> getMinMaxFullWeights()
const;
219 QPair<double, double> getMinMaxThresholdedWeights()
const;
227 QPair<int,int> getMinMaxFullDegrees()
const;
235 QPair<int,int> getMinMaxThresholdedDegrees()
const;
243 QPair<int,int> getMinMaxFullIndegrees()
const;
251 QPair<int,int> getMinMaxThresholdedIndegrees()
const;
259 QPair<int,int> getMinMaxFullOutdegrees()
const;
267 QPair<int,int> getMinMaxThresholdedOutdegrees()
const;
275 void setThreshold(
double dThreshold = 0.0);
283 double getThreshold();
292 void setFrequencyRange(
float fLowerFreq,
float fUpperFreq);
300 const QPair<float,float>& getFrequencyRange()
const;
308 void append(QSharedPointer<NetworkEdge> newEdge);
316 void append(QSharedPointer<NetworkNode> newNode);
324 bool isEmpty()
const;
354 float getSamplingFrequency()
const;
362 void setSamplingFrequency(
float fSFreq);
370 int getUsedFreqBins()
const;
378 void setUsedFreqBins(
int iNumberFreqBins);
386 void setFFTSize(
int iFFTSize);
423 #ifndef metatype_networks
424 #define metatype_networks
428 #ifndef metatype_networkslist
429 #define metatype_networkslist
433 #ifndef metatype_networkssptr
434 #define metatype_networkssptr
438 #ifndef metatype_networkssptrlist
439 #define metatype_networkssptrlist