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//=============================================================================================================
72
73//=============================================================================================================
80{
81 double dAlphaSpace = 0.5;
82 double dAlphaTime = 0.1;
83 int iMaxIterations = 100;
84 double dTolerance = 1e-6;
85 int iNFreqs = 8;
86 double dFMin = 1.0;
87 double dFMax = 40.0;
88 double dSFreq = 1000.0;
89 bool bDebias = true;
90};
91
92//=============================================================================================================
106{
107public:
108 //=========================================================================================================
118 static InvTfMxneResult compute(const Eigen::MatrixXd& matGain,
119 const Eigen::MatrixXd& matData,
120 const InvTfMxneParams& params = InvTfMxneParams());
121
122 //=========================================================================================================
134 static Eigen::MatrixXd buildGaborDictionary(int iNSamples, int iNFreqs,
135 double dFMin, double dFMax,
136 double dSFreq);
137};
138
139} // namespace INVLIB
140
141#endif // INV_TF_MXNE_H
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
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:65
InvSourceEstimate stc
Definition inv_tf_mxne.h:66
Eigen::MatrixXd tfCoefficients
Definition inv_tf_mxne.h:70
QVector< int > activeVertices
Definition inv_tf_mxne.h:67
Parameters for the TF-MxNE solver.
Definition inv_tf_mxne.h:80
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.