MNE-CPP
0.1.9
A Framework for Electrophysiology
Namespaces
Namespace List
API Reference
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
c
i
m
n
p
s
t
v
Properties
Related Functions
Files
File List
File Members
All
c
d
e
f
i
k
m
n
q
r
u
Functions
Variables
Macros
c
d
e
f
i
m
n
r
u
About
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Properties
Friends
Macros
Pages
src
libraries
mne
mne_cluster_info.h
Go to the documentation of this file.
1
//=============================================================================================================
37
#ifndef MNE_CLUSTER_INFO_H
38
#define MNE_CLUSTER_INFO_H
39
40
//=============================================================================================================
41
// INCLUDES
42
//=============================================================================================================
43
44
#include "
mne_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 <QList>
58
59
//=============================================================================================================
60
// DEFINE NAMESPACE MNELIB
61
//=============================================================================================================
62
63
namespace
MNELIB
64
{
65
66
//=============================================================================================================
72
class
MNESHARED_EXPORT
MNEClusterInfo
73
{
74
public
:
75
typedef
QSharedPointer<MNEClusterInfo>
SPtr
;
76
typedef
QSharedPointer<const MNEClusterInfo>
ConstSPtr
;
78
//=========================================================================================================
82
MNEClusterInfo
();
83
84
//=========================================================================================================
88
void
clear();
89
90
//=========================================================================================================
96
inline
bool
isEmpty()
const
;
97
98
//=========================================================================================================
104
inline
qint32 numClust()
const
;
105
106
//=========================================================================================================
112
void
write(QString p_sFileName)
const
;
113
121
friend
bool
operator== (
const
MNEClusterInfo
&a,
const
MNEClusterInfo
&b);
122
123
public
:
124
QList<QString>
clusterLabelNames
;
125
QList<qint32>
clusterLabelIds
;
126
QList<qint32>
centroidVertno
;
127
QList<Eigen::Vector3f>
centroidSource_rr
;
128
QList<Eigen::VectorXi>
clusterVertnos
;
129
QList<Eigen::MatrixX3f>
clusterSource_rr
;
130
QList<Eigen::VectorXd>
clusterDistances
;
131
};
132
133
//=============================================================================================================
134
// INLINE DEFINITIONS
135
//=============================================================================================================
136
137
inline
bool
MNEClusterInfo::isEmpty
()
const
138
{
139
return
!(this->
clusterVertnos
.size() > 0);
140
}
141
142
//=============================================================================================================
143
144
inline
qint32
MNEClusterInfo::numClust
()
const
145
{
146
return
this->
clusterVertnos
.size();
147
}
148
149
//=============================================================================================================
150
151
inline
bool
operator== (
const
MNEClusterInfo
&a,
const
MNEClusterInfo
&b)
152
{
153
if
(a.
centroidSource_rr
.size() == b.
centroidSource_rr
.size()) {
154
for
(
int
i = 0; i < a.
centroidSource_rr
.size(); ++i) {
155
if
(!a.
centroidSource_rr
.at(i).isApprox(b.
centroidSource_rr
.at(i), 0.0001f)) {
156
return
false
;
157
}
158
}
159
}
else
{
160
return
false
;
161
}
162
163
if
(a.
clusterVertnos
.size() == b.
clusterVertnos
.size()) {
164
for
(
int
i = 0; i < a.
clusterVertnos
.size(); ++i) {
165
if
(!a.
clusterVertnos
.at(i).isApprox(b.
clusterVertnos
.at(i))) {
166
return
false
;
167
}
168
}
169
}
else
{
170
return
false
;
171
}
172
173
if
(a.
clusterSource_rr
.size() == b.
clusterSource_rr
.size()) {
174
for
(
int
i = 0; i < a.
clusterSource_rr
.size(); ++i) {
175
if
(!a.
clusterSource_rr
.at(i).isApprox(b.
clusterSource_rr
.at(i), 0.0001f)) {
176
return
false
;
177
}
178
}
179
}
else
{
180
return
false
;
181
}
182
183
if
(a.
clusterDistances
.size() == b.
clusterDistances
.size()) {
184
for
(
int
i = 0; i < a.
clusterDistances
.size(); ++i) {
185
if
(!a.
clusterDistances
.at(i).isApprox(b.
clusterDistances
.at(i))) {
186
return
false
;
187
}
188
}
189
}
else
{
190
return
false
;
191
}
192
193
return
(a.
clusterLabelNames
== b.
clusterLabelNames
&&
194
a.
clusterLabelIds
== b.
clusterLabelIds
&&
195
a.
centroidVertno
== b.
centroidVertno
);
196
}
197
}
// NAMESPACE
198
199
#endif // MNE_CLUSTER_INFO_H
MNELIB::MNEClusterInfo::centroidVertno
QList< qint32 > centroidVertno
Definition:
mne_cluster_info.h:126
MNELIB::MNEClusterInfo::centroidSource_rr
QList< Eigen::Vector3f > centroidSource_rr
Definition:
mne_cluster_info.h:127
MNELIB::MNEClusterInfo
cluster information
Definition:
mne_cluster_info.h:72
MNESHARED_EXPORT
#define MNESHARED_EXPORT
Definition:
mne_global.h:56
MNELIB::MNEClusterInfo::SPtr
QSharedPointer< MNEClusterInfo > SPtr
Definition:
mne_cluster_info.h:75
MNELIB::MNEClusterInfo::clusterVertnos
QList< Eigen::VectorXi > clusterVertnos
Definition:
mne_cluster_info.h:128
MNELIB::MNEClusterInfo::clusterDistances
QList< Eigen::VectorXd > clusterDistances
Definition:
mne_cluster_info.h:130
MNELIB::MNEClusterInfo::clusterLabelIds
QList< qint32 > clusterLabelIds
Definition:
mne_cluster_info.h:125
MNELIB::MNEClusterInfo::clusterSource_rr
QList< Eigen::MatrixX3f > clusterSource_rr
Definition:
mne_cluster_info.h:129
mne_global.h
mne library export/import macros.
MNELIB::MNEClusterInfo::numClust
qint32 numClust() const
Definition:
mne_cluster_info.h:144
MNELIB::MNEClusterInfo::ConstSPtr
QSharedPointer< const MNEClusterInfo > ConstSPtr
Definition:
mne_cluster_info.h:76
MNELIB::MNEClusterInfo::isEmpty
bool isEmpty() const
Definition:
mne_cluster_info.h:137
MNELIB::MNEClusterInfo::clusterLabelNames
QList< QString > clusterLabelNames
Definition:
mne_cluster_info.h:124
Generated on Wed Aug 9 2023 17:55:42 for MNE-CPP by
1.8.17