v2.0.0
Loading...
Searching...
No Matches
src
libraries
inv
dipole_fit
inv_ecd.cpp
Go to the documentation of this file.
1
//=============================================================================================================
16
17
//=============================================================================================================
18
// INCLUDES
19
//=============================================================================================================
20
21
#include "
inv_ecd.h
"
22
23
//=============================================================================================================
24
// USED NAMESPACES
25
//=============================================================================================================
26
27
using namespace
Eigen;
28
using namespace
INVLIB
;
29
30
//=============================================================================================================
31
// DEFINE MEMBER METHODS
32
//=============================================================================================================
33
34
InvEcd::InvEcd
()
35
:
valid
(false)
36
,
time
(-1)
37
,
rd
(Vector3f::Zero(3))
38
,
Q
(Vector3f::Zero(3))
39
,
good
(0)
40
,
khi2
(0)
41
,
nfree
(0)
42
,
neval
(-1)
43
{
44
}
45
46
//=============================================================================================================
47
48
InvEcd::InvEcd
(
const
InvEcd
& p_ECD)
49
:
valid
(p_ECD.
valid
)
50
,
time
(p_ECD.
time
)
51
,
rd
(p_ECD.
rd
)
52
,
Q
(p_ECD.
Q
)
53
,
good
(p_ECD.
good
)
54
,
khi2
(p_ECD.
khi2
)
55
,
nfree
(p_ECD.
nfree
)
56
,
neval
(p_ECD.
neval
)
57
{
58
}
59
60
//=============================================================================================================
61
62
InvEcd::~InvEcd
()
63
{
64
}
65
66
//=============================================================================================================
67
68
void
InvEcd::print
()
const
69
{
70
if
(!this->
valid
)
71
return
;
72
73
qInfo(
"%6.1f %7.2f %7.2f %7.2f %6.2f %6.2f %6.2f %6.2f %6.2f %6.2f %d"
,
74
1000*this->
time
,
/* Time */
75
1000*this->
rd
[0],
/* Dipole location */
76
1000*this->
rd
[1],
77
1000*this->
rd
[2],
78
1e9*this->
Q
.norm(),
/* Dipole moment */
79
1e9*this->Q[0],1e9*this->Q[1],1e9*this->Q[2],
80
this->khi2/this->nfree,
/* This is the reduced khi^2 value */
81
100*this->good,
/* Goodness of fit */
82
this->neval);
/* Number of function evaluations required */
83
}
inv_ecd.h
Single equivalent current dipole (ECD) with position, moment and per-fit goodness/χ² metrics.
INVLIB
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Definition
braintreemodel.h:42
INVLIB::InvEcd::good
float good
Definition
inv_ecd.h:92
INVLIB::InvEcd::nfree
int nfree
Definition
inv_ecd.h:94
INVLIB::InvEcd::time
float time
Definition
inv_ecd.h:89
INVLIB::InvEcd::Q
Eigen::Vector3f Q
Definition
inv_ecd.h:91
INVLIB::InvEcd::rd
Eigen::Vector3f rd
Definition
inv_ecd.h:90
INVLIB::InvEcd::print
void print() const
Definition
inv_ecd.cpp:68
INVLIB::InvEcd::~InvEcd
~InvEcd()
Definition
inv_ecd.cpp:62
INVLIB::InvEcd::neval
int neval
Definition
inv_ecd.h:95
INVLIB::InvEcd::khi2
float khi2
Definition
inv_ecd.h:93
INVLIB::InvEcd::InvEcd
InvEcd()
Definition
inv_ecd.cpp:34
INVLIB::InvEcd::valid
bool valid
Definition
inv_ecd.h:88
Generated on
for MNE-CPP by
1.16.1