Graph container for one connectivity metric; nodes + weighted edges + threshold/visualisation state. More...
#include <network.h>
Public Types | |
| typedef QSharedPointer< Network > | SPtr |
| typedef QSharedPointer< const Network > | ConstSPtr |
Public Member Functions | |
| Network (const QString &sConnectivityMethod="Unknown", double dThreshold=0.0) | |
| Eigen::MatrixXd | getFullConnectivityMatrix (bool bGetMirroredVersion=true) const |
| Eigen::MatrixXd | getThresholdedConnectivityMatrix (bool bGetMirroredVersion=true) const |
| const QList< QSharedPointer< NetworkEdge > > & | getFullEdges () const |
| const QList< QSharedPointer< NetworkEdge > > & | getThresholdedEdges () const |
| const QList< QSharedPointer< NetworkNode > > & | getNodes () const |
| QSharedPointer< NetworkEdge > | getEdgeAt (int i) |
| QSharedPointer< NetworkNode > | getNodeAt (int i) |
| qint16 | getFullDistribution () const |
| qint16 | getThresholdedDistribution () const |
| void | setConnectivityMethod (const QString &sConnectivityMethod) |
| QString | getConnectivityMethod () const |
| QPair< double, double > | getMinMaxFullWeights () const |
| QPair< double, double > | getMinMaxThresholdedWeights () const |
| QPair< int, int > | getMinMaxFullDegrees () const |
| QPair< int, int > | getMinMaxThresholdedDegrees () const |
| QPair< int, int > | getMinMaxFullIndegrees () const |
| QPair< int, int > | getMinMaxThresholdedIndegrees () const |
| QPair< int, int > | getMinMaxFullOutdegrees () const |
| QPair< int, int > | getMinMaxThresholdedOutdegrees () const |
| void | setThreshold (double dThreshold=0.0) |
| double | getThreshold () |
| void | setFrequencyRange (float fLowerFreq, float fUpperFreq) |
| const QPair< float, float > & | getFrequencyRange () const |
| void | append (QSharedPointer< NetworkEdge > newEdge) |
| void | append (QSharedPointer< NetworkNode > newNode) |
| bool | isEmpty () const |
| void | normalize () |
| VisualizationInfo | getVisualizationInfo () const |
| void | setVisualizationInfo (const VisualizationInfo &visualizationInfo) |
| float | getSamplingFrequency () const |
| void | setSamplingFrequency (float fSFreq) |
| int | getUsedFreqBins () const |
| void | setUsedFreqBins (int iNumberFreqBins) |
| void | setFFTSize (int iFFTSize) |
| int | getFFTSize () |
Protected Attributes | |
| QList< QSharedPointer< NetworkEdge > > | m_lFullEdges |
| QList< QSharedPointer< NetworkEdge > > | m_lThresholdedEdges |
| QList< QSharedPointer< NetworkNode > > | m_lNodes |
| Eigen::MatrixXd | m_matDistMatrix |
| QString | m_sConnectivityMethod |
| QPair< double, double > | m_minMaxFullWeights |
| QPair< double, double > | m_minMaxThresholdedWeights |
| QPair< float, float > | m_minMaxFrequency |
| double | m_dThreshold |
| float | m_fSFreq |
| int | m_iNumberFreqBins |
| int | m_iFFTSize |
| VisualizationInfo | m_visualizationInfo |
Graph container for one connectivity metric; nodes + weighted edges + threshold/visualisation state.
Graph container for one functional-connectivity result.
Holds the NetworkNode list (channel / source positions) and the NetworkEdge list (per-frequency weight matrices + scalar band- averaged weights). Provides full and thresholded views of both edges and the corresponding adjacency matrix, the metric name ("COH", "PLI", "GC", ...) and threshold currently in effect, and the VisualizationInfo block read by the disp3D rendering layer.
| typedef QSharedPointer<const Network> CONNECTIVITYLIB::Network::ConstSPtr |
| typedef QSharedPointer<Network> CONNECTIVITYLIB::Network::SPtr |
|
explicit |
Constructs a Network object.
| [in] | sConnectivityMethod | The connectivity measure method used to create the data of this network structure. |
| [in] | dThreshold | The threshold of the network. Default is 0.0. |
Definition at line 56 of file network.cpp.
| void CONNECTIVITYLIB::Network::append | ( | QSharedPointer< NetworkEdge > | newEdge | ) |
Appends a network edge to this network node.
| [in] | newEdge | The new edge item. |
| void CONNECTIVITYLIB::Network::append | ( | QSharedPointer< NetworkNode > | newNode | ) |
Appends a network edge to this network node.
| [in] | newNode | The new node item as a reference. |
| QString Network::getConnectivityMethod | ( | ) | const |
Returns the connectivity measure method used to create the data of this network structure.
Definition at line 190 of file network.cpp.
| NetworkEdge::SPtr Network::getEdgeAt | ( | int | i | ) |
Returns the edge at a specific position.
| [in] | i | The index to look up the edge. i must be a valid index position in the network list (i.e., 0 <= i < size()). |
Definition at line 150 of file network.cpp.
| int Network::getFFTSize | ( | ) |
Returns the current FFT size.
Definition at line 507 of file network.cpp.
| const QPair< float, float > & Network::getFrequencyRange | ( | ) | const |
Returns the current frequency edge to average from/to.
Definition at line 392 of file network.cpp.
| MatrixXd Network::getFullConnectivityMatrix | ( | bool | bGetMirroredVersion = true | ) | const |
Returns the full connectivity matrix for this network structure.
| [in] | bGetMirroredVersion | Flag whether to return the mirrored version of the connectivity matrix, if the network. is a non-directional one. Otherwise returns zeros for the lower part of the matrix. Default is set to true. |
Definition at line 74 of file network.cpp.
| qint16 Network::getFullDistribution | ( | ) | const |
Returns network distribution, also known as network degree, corresponding to the full network.
Definition at line 157 of file network.cpp.
| const QList< NetworkEdge::SPtr > & Network::getFullEdges | ( | ) | const |
Returns the full and non thresholded edges.
Definition at line 122 of file network.cpp.
| QPair< int, int > Network::getMinMaxFullDegrees | ( | ) | const |
Returns the minimum and maximum degree (in and out) corresponding to the full network.
Definition at line 211 of file network.cpp.
| QPair< int, int > Network::getMinMaxFullIndegrees | ( | ) | const |
Returns the minimum and maximum indegree corresponding to the full network.
Definition at line 247 of file network.cpp.
| QPair< int, int > Network::getMinMaxFullOutdegrees | ( | ) | const |
Returns the minimum and maximum outdegree corresponding to the full network.
Definition at line 283 of file network.cpp.
| QPair< double, double > Network::getMinMaxFullWeights | ( | ) | const |
Returns the minimum and maximum weight strength of the entire network.
Definition at line 197 of file network.cpp.
| QPair< int, int > Network::getMinMaxThresholdedDegrees | ( | ) | const |
Returns the minimum and maximum degree (in and out) corresponding to the thresholded network.
Definition at line 229 of file network.cpp.
| QPair< int, int > Network::getMinMaxThresholdedIndegrees | ( | ) | const |
Returns the minimum and maximum indegree corresponding to the thresholded network.
Definition at line 265 of file network.cpp.
| QPair< int, int > Network::getMinMaxThresholdedOutdegrees | ( | ) | const |
Returns the minimum and maximum outdegree corresponding to the thresholded network.
Definition at line 301 of file network.cpp.
| QPair< double, double > Network::getMinMaxThresholdedWeights | ( | ) | const |
Returns the minimum and maximum weight strength of the thresholded network.
Definition at line 204 of file network.cpp.
| NetworkNode::SPtr Network::getNodeAt | ( | int | i | ) |
Returns the node at a specific position.
| [in] | i | The index to look up the node. i must be a valid index position in the network list (i.e., 0 <= i < size()). |
Definition at line 143 of file network.cpp.
| const QList< NetworkNode::SPtr > & Network::getNodes | ( | ) | const |
| float Network::getSamplingFrequency | ( | ) | const |
Get the currently set sampling frequency.
Definition at line 472 of file network.cpp.
| double Network::getThreshold | ( | ) |
Returns the current threshold of the network.
Definition at line 339 of file network.cpp.
| MatrixXd Network::getThresholdedConnectivityMatrix | ( | bool | bGetMirroredVersion = true | ) | const |
Returns the thresholded connectivity matrix for this network structure.
| [in] | bGetMirroredVersion | Flag whether to return the mirrored version of the connectivity matrix, if the network. is a non-directional one. Otherwise returns zeros for the lower part of the matrix. Default is set to true. |
Definition at line 98 of file network.cpp.
| qint16 Network::getThresholdedDistribution | ( | ) | const |
Returns network distribution, also known as network degree, corresponding to the thresholded network.
Definition at line 170 of file network.cpp.
| const QList< NetworkEdge::SPtr > & Network::getThresholdedEdges | ( | ) | const |
Returns the thresholded edges.
Definition at line 129 of file network.cpp.
| int Network::getUsedFreqBins | ( | ) | const |
Get the currently set number of frequency bins.
Definition at line 486 of file network.cpp.
| VisualizationInfo Network::getVisualizationInfo | ( | ) | const |
Get the current visualization info.
Definition at line 458 of file network.cpp.
| bool Network::isEmpty | ( | ) | const |
Returns whether the Network is empty by checking the number of nodes and edges.
Definition at line 426 of file network.cpp.
| void Network::normalize | ( | ) |
Normalize the network.
Definition at line 437 of file network.cpp.
| void Network::setConnectivityMethod | ( | const QString & | sConnectivityMethod | ) |
Sets the connectivity measure method used to create the data of this network structure.
| [in] | sConnectivityMethod | The connectivity measure method used to create the data of this network structure. |
Definition at line 183 of file network.cpp.
| void Network::setFFTSize | ( | int | iFFTSize | ) |
Set the new FFT size.
| [in] | iFFTSize | The used FFT size (number of total frequency bins for a half spectrum - only positive frequencies). |
Definition at line 500 of file network.cpp.
| void Network::setFrequencyRange | ( | float | fLowerFreq, |
| float | fUpperFreq ) |
Sets the frequency range to average from/to.
| [in] | fLowerFreq | The new lower frequency edge to average from. |
| [in] | fUpperFreq | The new upper frequency edge to average to. |
Definition at line 346 of file network.cpp.
| void Network::setSamplingFrequency | ( | float | fSFreq | ) |
Set the new sampling frequency.
| [in] | sFreq | The new sampling frequency. |
Definition at line 479 of file network.cpp.
| void Network::setThreshold | ( | double | dThreshold = 0.0 | ) |
Sets the threshold of the network and updates the resulting active edges.
| [in] | dThreshold | The new threshold. |
Definition at line 319 of file network.cpp.
| void Network::setUsedFreqBins | ( | int | iNumberFreqBins | ) |
Set the new number of used frequency bins.
| [in] | iNumberFreqBins | The new number of used frequency bins. |
Definition at line 493 of file network.cpp.
| void Network::setVisualizationInfo | ( | const VisualizationInfo & | visualizationInfo | ) |
Set the current visualization info.
| [in] | visualizationInfo | The new visualization info. |
Definition at line 465 of file network.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |