MNE-CPP
0.1.9
A Framework for Electrophysiology
|
This class holds information about a network, can compute a distance table and provide network metrics. 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 |
This class holds information about a network, can compute a distance table and provide network metrics.
This class holds information (nodes and connecting edges) about a network, can compute a distance table and provide network metrics.
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 76 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 203 of file network.cpp.
QSharedPointer<NetworkEdge> CONNECTIVITYLIB::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()). |
int Network::getFFTSize | ( | ) |
Returns the current FFT size.
Definition at line 520 of file network.cpp.
const QPair< float, float > & Network::getFrequencyRange | ( | ) | const |
Returns the current frequency edge to average from/to.
Definition at line 405 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 94 of file network.cpp.
qint16 Network::getFullDistribution | ( | ) | const |
Returns network distribution, also known as network degree, corresponding to the full network.
Definition at line 170 of file network.cpp.
const QList< NetworkEdge::SPtr > & Network::getFullEdges | ( | ) | const |
Returns the full and non thresholded edges.
Definition at line 142 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 224 of file network.cpp.
QPair< int, int > Network::getMinMaxFullIndegrees | ( | ) | const |
Returns the minimum and maximum indegree corresponding to the full network.
Definition at line 260 of file network.cpp.
QPair< int, int > Network::getMinMaxFullOutdegrees | ( | ) | const |
Returns the minimum and maximum outdegree corresponding to the full network.
Definition at line 296 of file network.cpp.
QPair< double, double > Network::getMinMaxFullWeights | ( | ) | const |
Returns the minimum and maximum weight strength of the entire network.
Definition at line 210 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 242 of file network.cpp.
QPair< int, int > Network::getMinMaxThresholdedIndegrees | ( | ) | const |
Returns the minimum and maximum indegree corresponding to the thresholded network.
Definition at line 278 of file network.cpp.
QPair< int, int > Network::getMinMaxThresholdedOutdegrees | ( | ) | const |
Returns the minimum and maximum outdegree corresponding to the thresholded network.
Definition at line 314 of file network.cpp.
QPair< double, double > Network::getMinMaxThresholdedWeights | ( | ) | const |
Returns the minimum and maximum weight strength of the thresholded network.
Definition at line 217 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 163 of file network.cpp.
const QList< NetworkNode::SPtr > & Network::getNodes | ( | ) | const |
float Network::getSamplingFrequency | ( | ) | const |
Get the currently set sampling frequency.
Definition at line 485 of file network.cpp.
double Network::getThreshold | ( | ) |
Returns the current threshold of the network.
Definition at line 352 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 118 of file network.cpp.
qint16 Network::getThresholdedDistribution | ( | ) | const |
Returns network distribution, also known as network degree, corresponding to the thresholded network.
Definition at line 183 of file network.cpp.
const QList< NetworkEdge::SPtr > & Network::getThresholdedEdges | ( | ) | const |
Returns the thresholded edges.
Definition at line 149 of file network.cpp.
int Network::getUsedFreqBins | ( | ) | const |
Get the currently set number of frequency bins.
Definition at line 499 of file network.cpp.
VisualizationInfo Network::getVisualizationInfo | ( | ) | const |
Get the current visualization info.
Definition at line 471 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 439 of file network.cpp.
void Network::normalize | ( | ) |
Normalize the network.
Definition at line 450 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 196 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 513 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 359 of file network.cpp.
void Network::setSamplingFrequency | ( | float | fSFreq | ) |
Set the new sampling frequency.
[in] | sFreq | The new sampling frequency. |
Definition at line 492 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 332 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 506 of file network.cpp.
void Network::setVisualizationInfo | ( | const VisualizationInfo & | visualizationInfo | ) |
Set the current visualization info.
[in] | visualizationInfo | The new visualization info. |
Definition at line 478 of file network.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |