| Bsoft 2.0.5 Bernard's software package

matrix_linear.h
Go to the documentation of this file.
1
9 #include "Matrix.h"
10
11 // Function prototypes
12 double linear_least_squares(int n1, int n2, double *x, double *y, double& a, double& b);
13 double fit_polynomial(int n, double* x, double* y, int order, double* coeff);
14 double fit_polynomial(int n, vector<double>& x, vector<double>& y, int order, vector<double>& coeff);
15 Vector3<double> fit_plane(Matrix a, vector<double> b);
16
fit_polynomial
double fit_polynomial(int n, double *x, double *y, int order, double *coeff)
Fits a data set to a polynomial function.
Definition: matrix_linear.cpp:166
Matrix.h
Generalized matrix class.
fit_plane
Vector3< double > fit_plane(Matrix a, vector< double > b)
Solves for fitting a plane through a model.
Definition: matrix_linear.cpp:227
Matrix
Definition: Matrix.h:21
Vector3< double >
linear_least_squares
double linear_least_squares(int n1, int n2, double *x, double *y, double &a, double &b)
Does a linear least squares fit between two vectors.
Definition: matrix_linear.cpp:28