A single SSP (Signal-Space Projection) item. More...
#include <mne_proj_item.h>
Public Types | |
| typedef QSharedPointer< MNEProjItem > | SPtr |
| typedef QSharedPointer< const MNEProjItem > | ConstSPtr |
Public Member Functions | |
| MNEProjItem () | |
| Default constructor. | |
| MNEProjItem (const MNEProjItem &other) | |
| Copy constructor. | |
| MNEProjItem & | operator= (const MNEProjItem &other) |
| Copy assignment operator. | |
| MNEProjItem (MNEProjItem &&) noexcept=default | |
| Move constructor (defaulted). | |
| MNEProjItem & | operator= (MNEProjItem &&) noexcept=default |
| Move assignment operator (defaulted). | |
| ~MNEProjItem () | |
| Destructor. | |
| int | affect (const QStringList &list, int nlist) const |
| Test whether this projection item affects any of the listed channels. | |
Public Attributes | |
| std::unique_ptr< MNENamedMatrix > | vecs |
| int | nvec |
| QString | desc |
| int | kind |
| int | active |
| int | active_file |
| int | has_meg |
| int | has_eeg |
A single SSP (Signal-Space Projection) item.
MNEProjItem holds one linear projection operator consisting of a set of projection vectors (stored as an MNENamedMatrix), together with metadata such as the projection kind, a human-readable description, and flags indicating whether the item is currently active and which channel types (MEG / EEG) it covers.
Projection items are aggregated by MNEProjOp to form the complete SSP operator that is applied during inverse computations and dipole fitting.
Definition at line 85 of file mne_proj_item.h.
| typedef QSharedPointer<const MNEProjItem> MNELIB::MNEProjItem::ConstSPtr |
Const shared pointer type for MNEProjItem.
Definition at line 89 of file mne_proj_item.h.
| typedef QSharedPointer<MNEProjItem> MNELIB::MNEProjItem::SPtr |
Shared pointer type for MNEProjItem.
Definition at line 88 of file mne_proj_item.h.
| MNEProjItem::MNEProjItem | ( | ) |
Default constructor.
Initialises all flags to their default values (active = true, kind = FIFFV_PROJ_ITEM_NONE, no MEG/EEG channels).
Definition at line 55 of file mne_proj_item.cpp.
| MNEProjItem::MNEProjItem | ( | const MNEProjItem & | other | ) |
Copy constructor.
Deep-copies the projection vectors (unique_ptr member).
Definition at line 67 of file mne_proj_item.cpp.
|
defaultnoexcept |
Move constructor (defaulted).
| MNEProjItem::~MNEProjItem | ( | ) |
Destructor.
Definition at line 98 of file mne_proj_item.cpp.
| int MNEProjItem::affect | ( | const QStringList & | list, |
| int | nlist ) const |
Test whether this projection item affects any of the listed channels.
Iterates over list and checks if any channel name matches a column in the projection vectors that contains at least one non-zero entry.
| [in] | list | Channel names to test against. |
| [in] | nlist | Number of channel names in list. |
true (non-zero) if this item affects at least one channel, false (0) otherwise. Definition at line 104 of file mne_proj_item.cpp.
| MNEProjItem & MNEProjItem::operator= | ( | const MNEProjItem & | other | ) |
Copy assignment operator.
Deep-copies the projection vectors (unique_ptr member).
Definition at line 81 of file mne_proj_item.cpp.
|
defaultnoexcept |
Move assignment operator (defaulted).
| int MNELIB::MNEProjItem::active |
Whether this item is currently active.
Definition at line 154 of file mne_proj_item.h.
| int MNELIB::MNEProjItem::active_file |
Whether this item was active when loaded from file.
Definition at line 155 of file mne_proj_item.h.
| QString MNELIB::MNEProjItem::desc |
Human-readable description (e.g. "PCA-v1").
Definition at line 152 of file mne_proj_item.h.
| int MNELIB::MNEProjItem::has_eeg |
Whether the projection covers EEG channels.
Definition at line 157 of file mne_proj_item.h.
| int MNELIB::MNEProjItem::has_meg |
Whether the projection covers MEG channels.
Definition at line 156 of file mne_proj_item.h.
| int MNELIB::MNEProjItem::kind |
FIFF projection item kind (FIFFV_PROJ_ITEM_*).
Definition at line 153 of file mne_proj_item.h.
| int MNELIB::MNEProjItem::nvec |
Number of projection vectors (== vecs->nrow when vecs is set).
Definition at line 151 of file mne_proj_item.h.
| std::unique_ptr<MNENamedMatrix> MNELIB::MNEProjItem::vecs |
Projection vectors (nrow = nvec, ncol = nch); may be nullptr when nvec == 0.
Definition at line 150 of file mne_proj_item.h.