v2.0.0
Loading...
Searching...
No Matches
inv_tf_mxne.h
Go to the documentation of this file.
1//=============================================================================================================
27
28#ifndef INV_TF_MXNE_H
29#define INV_TF_MXNE_H
30
31//=============================================================================================================
32// INCLUDES
33//=============================================================================================================
34
35#include "../inv_global.h"
37
38//=============================================================================================================
39// EIGEN INCLUDES
40//=============================================================================================================
41
42#include <Eigen/Core>
43#include <Eigen/Dense>
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QVector>
50
51//=============================================================================================================
52// DEFINE NAMESPACE INVLIB
53//=============================================================================================================
54
55namespace INVLIB
56{
57
58//=============================================================================================================
70
71//=============================================================================================================
76{
77 double dAlphaSpace = 0.5;
78 double dAlphaTime = 0.1;
79 int iMaxIterations = 100;
80 double dTolerance = 1e-6;
81 int iNFreqs = 8;
82 double dFMin = 1.0;
83 double dFMax = 40.0;
84 double dSFreq = 1000.0;
85 bool bDebias = true;
86};
87
88//=============================================================================================================
109{
110public:
111 //=========================================================================================================
121 static InvTfMxneResult compute(const Eigen::MatrixXd& matGain,
122 const Eigen::MatrixXd& matData,
123 const InvTfMxneParams& params = InvTfMxneParams());
124
125 //=========================================================================================================
137 static Eigen::MatrixXd buildGaborDictionary(int iNSamples, int iNFreqs,
138 double dFMin, double dFMax,
139 double dSFreq);
140};
141
142} // namespace INVLIB
143
144#endif // INV_TF_MXNE_H
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Source-space inverse-solution container with dense grid plus optional focal-dipole,...
Result structure for the TF-MxNE solver.
Definition inv_tf_mxne.h:63
InvSourceEstimate stc
Definition inv_tf_mxne.h:64
Eigen::MatrixXd tfCoefficients
Definition inv_tf_mxne.h:68
QVector< int > activeVertices
Definition inv_tf_mxne.h:65
Parameters for the TF-MxNE solver.
Definition inv_tf_mxne.h:76
Time-Frequency Mixed-Norm Estimate (TF-MxNE) sparse inverse solver.
static Eigen::MatrixXd buildGaborDictionary(int iNSamples, int iNFreqs, double dFMin, double dFMax, double dSFreq)
Build a Gabor dictionary (tight frame) for time-frequency decomposition.
static InvTfMxneResult compute(const Eigen::MatrixXd &matGain, const Eigen::MatrixXd &matData, const InvTfMxneParams &params=InvTfMxneParams())
Compute the TF-MxNE inverse solution.