Fine calibration data for SSS. More...
#include <fine_calibration.h>
Public Member Functions | |
| FineCalibration ()=default | |
| bool | write (const QString &sPath) const |
| Write fine calibration to a .dat file. | |
| const QList< FineCalEntry > & | entries () const |
| Get the calibration entries. | |
| int | size () const |
| Get the number of entries. | |
| bool | isEmpty () const |
| Check if empty. | |
| bool | findEntry (int chNumber, FineCalEntry &entry) const |
| Find entry by channel number. | |
| void | addEntry (const FineCalEntry &entry) |
| Add an entry. | |
| Eigen::VectorXd | gainVector () const |
| Magnetometer calibration factors. | |
| Eigen::MatrixXd | imbalanceMatrix () const |
| Gradiometer imbalance terms. | |
Static Public Member Functions | |
| static FineCalibration | read (const QString &sPath) |
| Read a fine calibration file (.dat format). | |
Fine calibration data for SSS.
A fine calibration file (.dat) has one line per MEG sensor, as read and written by mne.preprocessing.read_fine_calibration / write_fine_calibration: channel_number position(3) x_axis(3) y_axis(3) z_axis(3) imbalance(1 or 3)
Definition at line 70 of file fine_calibration.h.
|
default |
|
inline |
Add an entry.
| [in] | entry | Calibration entry appended to the end of the list. |
Definition at line 148 of file fine_calibration.h.
|
inline |
Get the calibration entries.
Definition at line 104 of file fine_calibration.h.
| bool FineCalibration::findEntry | ( | int | chNumber, |
| FineCalEntry & | entry ) const |
Find entry by channel number.
| [in] | chNumber | Channel number to find. |
| [out] | entry | Found entry (if any). |
Definition at line 116 of file fine_calibration.cpp.
| VectorXd FineCalibration::gainVector | ( | ) | const |
Magnetometer calibration factors.
Definition at line 129 of file fine_calibration.cpp.
| MatrixXd FineCalibration::imbalanceMatrix | ( | ) | const |
Gradiometer imbalance terms.
Definition at line 142 of file fine_calibration.cpp.
|
inline |
Check if empty.
Definition at line 126 of file fine_calibration.h.
|
static |
Read a fine calibration file (.dat format).
Each line has 14 or 16 whitespace-separated columns (see the class description); lines starting with '#' are comments and malformed lines are skipped.
| [in] | sPath | Path to .dat file. |
Definition at line 39 of file fine_calibration.cpp.
|
inline |
Get the number of entries.
Definition at line 115 of file fine_calibration.h.
| bool FineCalibration::write | ( | const QString & | sPath | ) | const |
Write fine calibration to a .dat file.
| [in] | sPath | Output file path. |
Definition at line 86 of file fine_calibration.cpp.