Prusa MINI Firmware overview
linear_fit_data Struct Reference

#include <least_squares_fit.h>

Collaboration diagram for linear_fit_data:

Public Attributes

float xbar
 
float ybar
 
float zbar
 
float x2bar
 
float y2bar
 
float z2bar
 
float xybar
 
float xzbar
 
float yzbar
 
float max_absx
 
float max_absy
 
float A
 
float B
 
float D
 
float N
 

Detailed Description

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. Incremental Least Squares Best Fit By Roxy and Ed Williams

This algorithm is high speed and has a very small code footprint. Its results are identical to both the Iterative Least-Squares published earlier by Roxy and the QR_SOLVE solution. If used in place of QR_SOLVE it saves roughly 10K of program memory. And even better... the data fed into the algorithm does not need to all be present at the same time. A point can be probed and its values fed into the algorithm and then discarded.

Member Data Documentation

◆ xbar

float linear_fit_data::xbar

◆ ybar

float linear_fit_data::ybar

◆ zbar

float linear_fit_data::zbar

◆ x2bar

float linear_fit_data::x2bar

◆ y2bar

float linear_fit_data::y2bar

◆ z2bar

float linear_fit_data::z2bar

◆ xybar

float linear_fit_data::xybar

◆ xzbar

float linear_fit_data::xzbar

◆ yzbar

float linear_fit_data::yzbar

◆ max_absx

float linear_fit_data::max_absx

◆ max_absy

float linear_fit_data::max_absy

◆ A

float linear_fit_data::A

◆ B

float linear_fit_data::B

◆ D

float linear_fit_data::D

◆ N

float linear_fit_data::N