31#include <QtConcurrent>
37#include <unsupported/Eigen/FFT>
62 Network finalNetwork(
"IMAGCOH");
64 if(connectivitySettings.
isEmpty()) {
65 qDebug() <<
"ImagCoherence::calculate - Input data is empty";
83 int iNFreqs = int(floor(iNfft / 2.0)) + 1;
90 qDebug() <<
"ImagCoherence::calculate - Resetting to full spectrum";
100 int rows = connectivitySettings.
at(0).
matData.rows();
101 RowVectorXf rowVert = RowVectorXf::Zero(3);
103 for(
int i = 0; i < rows; ++i) {
104 rowVert = RowVectorXf::Zero(3);
117 connectivitySettings);
Complex coherency between every channel pair and its two reductions: magnitude (coherence) and imagin...
Volume-conduction-robust imaginary coherence (Nolte et al., 2004) between every channel pair.
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 void calculateImag(Network &finalNetwork, ConnectivitySettings &connectivitySettings)
static Network calculate(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