v2.0.0
Loading...
Searching...
No Matches
layoutmaker.cpp File Reference

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>
Include dependency graph for layoutmaker.cpp:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES

Variables

constexpr double EPS = 1e-6

Detailed Description

Implementation of UTILSLIB::LayoutMaker — sphere fit, azimuthal projection and .lout writer.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2014-2026 MNE-CPP Authors

Author
Lorenz Esch loren.nosp@m.z.es.nosp@m.ch@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org; Gabriel Motta gabri.nosp@m.elbe.nosp@m.nmott.nosp@m.a@gm.nosp@m.ail.c.nosp@m.om; Andreas Griesshammer ag@fi.nosp@m.eldl.nosp@m.inein.nosp@m.c.co.nosp@m.m
Since
0.1.0
Date
November 2014

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.

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 30 of file layoutmaker.cpp.

Variable Documentation

◆ EPS

double EPS = 1e-6
constexpr

Definition at line 52 of file layoutmaker.cpp.