v2.0.0
Loading...
Searching...
No Matches
inv_hpi_model_parameters.cpp
Go to the documentation of this file.
1//=============================================================================================================
18
19//=============================================================================================================
20// INCLUDES
21//=============================================================================================================
22
24
25//=============================================================================================================
26// QT INCLUDES
27//=============================================================================================================
28#include <QVector>
29
30//=============================================================================================================
31// EIGEN INCLUDES
32//=============================================================================================================
33
34//=============================================================================================================
35// USED NAMESPACES
36//=============================================================================================================
37
38using namespace INVLIB;
39
40//=============================================================================================================
41// DEFINE GLOBAL METHODS
42//=============================================================================================================
43
44//=============================================================================================================
45// DEFINE MEMBER METHODS
46//=============================================================================================================
47
49 const int iSampleFreq,
50 const int iLineFreq,
51 const bool bBasic)
52 : m_vecHpiFreqs(vecHpiFreqs),
53 m_iSampleFreq(iSampleFreq),
54 m_iLineFreq(iLineFreq),
55 m_bBasic(bBasic)
56{
57 computeNumberOfCoils();
58 checkForLineFreq();
59}
60
61//=============================================================================================================
62
64 : m_vecHpiFreqs(hpiModelParameter.vecHpiFreqs()),
65 m_iNHpiCoils(hpiModelParameter.iNHpiCoils()),
66 m_iSampleFreq(hpiModelParameter.iSampleFreq()),
67 m_iLineFreq(hpiModelParameter.iLineFreq()),
68 m_bBasic(hpiModelParameter.bBasic())
69{
70}
71
72//=============================================================================================================
73
74void InvHpiModelParameters::computeNumberOfCoils()
75{
76 m_iNHpiCoils = m_vecHpiFreqs.size();
77}
78
79void InvHpiModelParameters::checkForLineFreq()
80{
81 if(m_iLineFreq == 0) {
82 m_bBasic = true;
83 }
84}
85
86//=============================================================================================================
87
89{
90 if (this != &other) {
91 m_vecHpiFreqs = other.vecHpiFreqs();
92 m_iNHpiCoils = other.iNHpiCoils();
93 m_iSampleFreq = other.iSampleFreq();
94 m_iLineFreq = other.iLineFreq();
95 m_bBasic = other.bBasic();
96 }
97 return *this;
98}
Immutable configuration for the HPI signal model — coil drive frequencies, sample rate,...
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
InvHpiModelParameters operator=(const InvHpiModelParameters &other)