|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Linear regression (least squares fitting). More...
#include <cmath>#include <cstddef>#include <limits>#include <string>#include <utility>#include <ah-zip.H>#include <tpl_array.H>#include <ah-string-utils.H>#include <aleph-exceptions.H>Go to the source code of this file.
Classes | |
| struct | LFit |
| Linear regression calculator using least squares method. More... | |
Linear regression (least squares fitting).
This file provides the LFit struct for performing simple linear regression on paired (x, y) data. It makes the computations of gsl_fit_linear(), gsl_stats_correlation() and gsl_fit_linear_est() of the GNU Scientific Library, in their order of operations, without GSL: built without fused multiply-adds, as GSL is for x86-64, its results are those of GSL, bit by bit; where the compiler fuses multiply-adds, as on arm64, the fit and the prediction may differ in their last bits, as the builds of GSL there do.
Definition in file lfit.H.