v2.0.0
Loading...
Searching...
No Matches
MNELIB::MNENamedVector Class Reference

#include <mne_named_vector.h>

Public Member Functions

 MNENamedVector ()=default
 ~MNENamedVector ()=default
int pick (const QStringList &names, int nnames, bool require_all, Eigen::Ref< Eigen::VectorXf > res) const

Public Attributes

int nvec = 0
QStringList names
Eigen::VectorXf data

Detailed Description

Named vector - vector specification with a channel list.

Definition at line 24 of file mne_named_vector.h.

Constructor & Destructor Documentation

◆ MNENamedVector()

MNELIB::MNENamedVector::MNENamedVector ( )
default

◆ ~MNENamedVector()

MNELIB::MNENamedVector::~MNENamedVector ( )
default

Member Function Documentation

◆ pick()

int MNENamedVector::pick ( const QStringList & names,
int nnames,
bool require_all,
Eigen::Ref< Eigen::VectorXf > res ) const

Pick elements from this named vector by name matching, writing them into a result vector ordered according to the supplied name list.

Parameters
[in]namesList of names to pick.
[in]nnamesNumber of names in the list.
[in]require_allIf true, fail when any name is not found.
[out]resOutput vector (must have at least nnames elements).
Returns
OK on success, FAIL on error.

Definition at line 60 of file mne_named_vector.cpp.

Member Data Documentation

◆ data

Eigen::VectorXf MNELIB::MNENamedVector::data

The data itself.

Definition at line 46 of file mne_named_vector.h.

◆ names

QStringList MNELIB::MNENamedVector::names

Name list for the elements.

Definition at line 45 of file mne_named_vector.h.

◆ nvec

int MNELIB::MNENamedVector::nvec = 0

Number of elements.

Definition at line 44 of file mne_named_vector.h.


The documentation for this class was generated from the following files: