Implementation of UTILSLIB::LayoutMaker — sphere fit, azimuthal projection and .lout writer.
More...
#include "layoutmaker.h"#include <math/simplex_algorithm.h>#include <math/sphere.h>#include <math.h>#include <iostream>#include <QTextStream>#include <QDebug>
Go to the source code of this file.
Macros | |
| #define | _USE_MATH_DEFINES |
Variables | |
| constexpr double | EPS = 1e-6 |
Implementation of UTILSLIB::LayoutMaker — sphere fit, azimuthal projection and .lout writer.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2014-2026 MNE-CPP Authors
The non-linear sphere fit uses a fixed-step gradient descent over the squared radial residuals; the algorithm and the fitUserRec workspace mirror the original MNE-C make_eeg_layout routine, so generated layouts remain bit-identical to what mne-c users have used for decades.
Definition in file layoutmaker.cpp.
| #define _USE_MATH_DEFINES |
Definition at line 30 of file layoutmaker.cpp.
|
constexpr |
Definition at line 52 of file layoutmaker.cpp.