FitUser
Namespace: MATHLIB · Library: Math Library
#include <math/sphere.h>
struct UTILSLIB::FitUser
Cost-function workspace for Sphere::fit_sphere_simplex: holds the nx3 point cloud and a verbose-report flag.
Example
No example of its own: Cost-function workspace of Sphere::fit_sphere_simplex; built and consumed only there.
It is exercised by:
src/examples/ex_math/main.cpp
MatrixX3f points(6, 3); // six points on a sphere of radius 0.09 around (0, 0, 0.04)
points << 0.09f, 0.0f, 0.04f, -0.09f, 0.0f, 0.04f, 0.0f, 0.09f, 0.04f,
0.0f, -0.09f, 0.04f, 0.0f, 0.0f, 0.13f, 0.0f, 0.0f, -0.05f;
Sphere sphere = Sphere::fit_sphere(points);
From ex_math.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>