Implements a simple linear least squares best fit routine. More...
Go to the source code of this file.
Functions | |
void | least_squares (double *x, double *y, int n, double *m, double *b) |
Classical least squares fit:. | |
void | least_squares_update (double x, double y, double *m, double *b) |
Incrimentally update existing values with a new data point. | |
double | least_squares_error (double *x, double *y, int n, double m, double b) |
double | least_squares_max_error (double *x, double *y, int n, double m, double b) |
Implements a simple linear least squares best fit routine.
Definition in file leastsqs.hxx.
void least_squares | ( | double * | x, | |
double * | y, | |||
int | n, | |||
double * | m, | |||
double * | b | |||
) |
double least_squares_error | ( | double * | x, | |
double * | y, | |||
int | n, | |||
double | m, | |||
double | b | |||
) |
Definition at line 97 of file leastsqs.cxx.
double least_squares_max_error | ( | double * | x, | |
double * | y, | |||
int | n, | |||
double | m, | |||
double | b | |||
) |