MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
ecd.h
Go to the documentation of this file.
1//=============================================================================================================
37#ifndef ECD_H
38#define ECD_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "../inverse_global.h"
45
46//=============================================================================================================
47// EIGEN INCLUDES
48//=============================================================================================================
49
50#include <Eigen/Core>
51
52//=============================================================================================================
53// QT INCLUDES
54//=============================================================================================================
55
56#include <QSharedPointer>
57#include <QDebug>
58
59//=============================================================================================================
60// DEFINE NAMESPACE INVERSELIB
61//=============================================================================================================
62
63namespace INVERSELIB
64{
65
66//=============================================================================================================
73{
74public:
75 typedef QSharedPointer<ECD> SPtr;
76 typedef QSharedPointer<const ECD> ConstSPtr;
78 //=========================================================================================================
82 ECD();
83
84 //=========================================================================================================
90 ECD(const ECD& p_ECD);
91
92 //=========================================================================================================
96 ~ECD();
97
98 //=========================================================================================================
104 void print(FILE *f) const;
105
106public:
107 bool valid;
108 float time;
109 Eigen::Vector3f rd;
110 Eigen::Vector3f Q;
111 float good;
112 float khi2;
113 int nfree;
114 int neval;
116// ### OLD STRUCT ###
117// typedef struct {
118// int valid; /* Is this dipole valid */
119// float time; /* Time point */
120// float rd[3]; /* Dipole location */
121// float Q[3]; /* Dipole moment */
122// float good; /* Goodness of fit */
123// float khi2; /* khi^2 value */
124// int nfree; /* Degrees of freedom for the above */
125// int neval; /* Number of function evaluations required for this fit */
126// } *ecd,ecdRec; /* One ECD */
127};
128
129//=============================================================================================================
130// INLINE DEFINITIONS
131//=============================================================================================================
132} // NAMESPACE INVERSELIB
133
134#endif // ECD_H
#define INVERSESHARED_EXPORT
Electric Current Dipole description.
Definition ecd.h:73
Eigen::Vector3f rd
Definition ecd.h:109
float time
Definition ecd.h:108
float good
Definition ecd.h:111
bool valid
Definition ecd.h:107
QSharedPointer< const ECD > ConstSPtr
Definition ecd.h:76
QSharedPointer< ECD > SPtr
Definition ecd.h:75
float khi2
Definition ecd.h:112
Eigen::Vector3f Q
Definition ecd.h:110