50 const MatrixXd& matWeight,
60 if(matWeight.rows() == 0 || matWeight.cols() == 0) {
61 m_matWeight = MatrixXd::Zero(1,1);
62 qDebug() <<
"NetworkEdge::NetworkEdge - Matrix weights number of rows and/or columns are zero. Setting to 1x1 zero matrix.";
64 m_matWeight = matWeight;
126 if(iEndWeightBin < iStartWeightBin || iStartWeightBin < -1 || iEndWeightBin < -1 ) {
132 if ((iEndWeightBin == -1 && iStartWeightBin == -1) ) {
134 }
else if(iStartWeightBin < rows) {
135 if(iEndWeightBin < rows) {
Weighted edge between two NetworkNode instances; stores the full per-frequency weight matrix and the ...
Node of a connectivity Network; carries a 3D position and the lists of incident (in / out,...
Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).
Eigen::MatrixXd m_matWeight
void setFrequencyBins(const QPair< int, int > &minMaxFreqBins)
void calculateAveragedWeight()
Eigen::MatrixXd getMatrixWeight() const
const QPair< int, int > & getFrequencyBins()
QPair< int, int > m_iMinMaxFreqBins
void setWeight(double dAveragedWeight)
NetworkEdge(int iStartNodeID, int iEndNodeID, const Eigen::MatrixXd &matWeight, bool bIsActive=true, int iStartWeightBin=-1, int iEndWeightBin=-1)
void setActive(bool bActiveFlag)