32#include <QtConcurrent>
38#include <unsupported/Eigen/FFT>
65 if(connectivitySettings.
isEmpty()) {
66 qDebug() <<
"Coherence::calculate - Input data is empty";
78 int iNFreqs = int(floor(iNfft / 2.0)) + 1;
85 qDebug() <<
"Coherence::calculate - Resetting to full spectrum";
95 int rows = connectivitySettings.
at(0).
matData.rows();
96 RowVectorXf rowVert = RowVectorXf::Zero(3);
98 for(
int i = 0; i < rows; ++i) {
99 rowVert = RowVectorXf::Zero(3);
112 connectivitySettings);;
Complex coherency between every channel pair and its two reductions: magnitude (coherence) and imagin...
Magnitude-squared coherence (MSC) between every channel pair, band-averaged over the selected DPSS sp...
Input-data and parameter container shared by every functional-connectivity metric in CONNECTIVITYLIB.
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,...
Graph container that stores the result of one functional-connectivity metric as nodes (sources/sensor...
Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).
Aggregates trial data, spectral cache and node geometry shared by all CONNECTIVITYLIB metrics.
const IntermediateTrialData & at(int i) const
void clearIntermediateData()
int getSamplingFrequency() const
const Eigen::MatrixX3f & getNodePositions() const
static int m_iNumberBinAmount
static bool m_bStorageModeIsActive
static int m_iNumberBinStart
static Network calculate(ConnectivitySettings &connectivitySettings)
static void calculateAbs(Network &finalNetwork, ConnectivitySettings &connectivitySettings)
Graph container for one connectivity metric; nodes + weighted edges + threshold/visualisation state.
void setUsedFreqBins(int iNumberFreqBins)
void append(QSharedPointer< NetworkEdge > newEdge)
void setFFTSize(int iFFTSize)
void setSamplingFrequency(float fSFreq)
Graph node carrying a 3D position and its incident in/out, full/thresholded edge lists.
QSharedPointer< NetworkNode > SPtr