73#define NOT_TRANSPOSED 0
74#define IS_TRANSPOSED 1
97 typedef QSharedPointer<RapMusic>
SPtr;
105 typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>
MatrixXT;
107 typedef Eigen::Matrix<double, Eigen::Dynamic, 6>
MatrixX6T;
109 typedef Eigen::Matrix<double, 6, Eigen::Dynamic>
Matrix6XT;
113 typedef Eigen::Matrix<double, Eigen::Dynamic, 1>
VectorXT;
157 virtual const char*
getName()
const;
168 void setStcAttr(
int p_iSampStcWin,
float p_fStcOverlap);
251 const int p_iNumCombinations,
252 Pair** p_ppPairIdxCombinations)
const;
270 static void getPointPair(
const int p_iPoints,
const int p_iCurIdx,
int &p_iIdx1,
int &p_iIdx2);
283 int p_iIdx1,
int p_iIdx2);
295 static void insertSource(
int p_iDipoleIdx1,
int p_iDipoleIdx2,
365 for(t_iRank = p_matSigma.rows()-1; t_iRank > 0; t_iRank--)
366 if (p_matSigma(t_iRank, t_iRank) > 0.00001)
381 int rank =
getRank(p_matSigma_src);
384 p_matFull_Rank = p_Mat.block(0,0,p_Mat.rows(),rank);
386 p_matFull_Rank = p_Mat.block(0,0,rank,p_Mat.cols());
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
MNESourceEstimate class declaration.
Contains declaration of IIinverseAlgorithm interface class.
inverse library export/import macros.
#define INVERSESHARED_EXPORT
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
struct INVERSELIB::Pair Pair
Index pair representing two grid points evaluated together in the RAP MUSIC subspace scan.
Inverse algorithm interface.
Pair of correlated dipole indices and orientations found by the RAP MUSIC scanning step.
Index pair representing two grid points evaluated together in the RAP MUSIC subspace scan.
static double subcorr(MatrixX6T &p_matProj_G, const MatrixXT &p_pMatU_B)
Eigen::Matrix< double, 6, 6 > Matrix6T
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorXT
Eigen::Matrix< double, Eigen::Dynamic, 6 > MatrixX6T
bool init(MNELIB::MNEForwardSolution &p_pFwd, bool p_bSparsed=false, int p_iN=2, double p_dThr=0.5)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixXT
virtual MNELIB::MNESourceEstimate calculateInverse(const Eigen::MatrixXd &data, float tmin, float tstep, bool pick_normal=false) const
virtual MNELIB::MNESourceEstimate calculateInverse(const Eigen::MatrixXd &p_matMeasurement, QList< DipolePair< double > > &p_RapDipoles) const
virtual const char * getName() const
static void getPointPair(const int p_iPoints, const int p_iCurIdx, int &p_iIdx1, int &p_iIdx2)
QSharedPointer< RapMusic > SPtr
int m_iNumLeadFieldCombinations
static void insertSource(int p_iDipoleIdx1, int p_iDipoleIdx2, const Vector6T &p_vec_phi_k_1, double p_valCor, QList< DipolePair< double > > &p_RapDipoles)
void calcOrthProj(const MatrixXT &p_matA_k_1, MatrixXT &p_matOrthProj) const
void setStcAttr(int p_iSampStcWin, float p_fStcOverlap)
Pair ** m_ppPairIdxCombinations
static MatrixXT makeSquareMat(const MatrixXT &p_matF)
virtual MNELIB::MNESourceEstimate calculateInverse(const FIFFLIB::FiffEvoked &p_fiffEvoked, bool pick_normal=false)
Eigen::Matrix< double, 6, Eigen::Dynamic > Matrix6XT
virtual const MNELIB::MNESourceSpaces & getSourceSpace() const
void calcPairCombinations(const int p_iNumPoints, const int p_iNumCombinations, Pair **p_ppPairIdxCombinations) const
static int useFullRank(const MatrixXT &p_Mat, const MatrixXT &p_matSigma_src, MatrixXT &p_matFull_Rank, int type=NOT_TRANSPOSED)
MNELIB::MNEForwardSolution m_ForwardSolution
static void getGainMatrixPair(const MatrixXT &p_matGainMarix, MatrixX6T &p_matGainMarix_Pair, int p_iIdx1, int p_iIdx2)
int calcPhi_s(const MatrixXT &p_matMeasurement, MatrixXT *&p_pMatPhi_s) const
QSharedPointer< const RapMusic > ConstSPtr
static int getRank(const MatrixXT &p_matSigma)
Eigen::Matrix< double, 6, 1 > Vector6T
static void calcA_k_1(const MatrixX6T &p_matG_k_1, const Vector6T &p_matPhi_k_1, const int p_iIdxk_1, MatrixXT &p_matA_k_1)
Source Space descritpion.