head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.38; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.54; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.01; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.57; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# leastsqs.hxx File Reference

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)

## Detailed Description

Implements a simple linear least squares best fit routine.

Definition in file leastsqs.hxx.

## Function Documentation

void least_squares | ( | double * | x,
|  | double * | y,
|  | int | n,
|  | double * | m,
|  | double * | b
| ) |

| Classical least squares fit:. Definition at line 47 of file leastsqs.cxx.

double least_squares_error | ( | double * | x,
|  | double * | y,
|  | int | n,
|  | double | m,
|  | double | b
| ) |

| Returns: the least squares error:. Definition at line 98 of file leastsqs.cxx.

double least_squares_max_error | ( | double * | x,
|  | double * | y,
|  | int | n,
|  | double | m,
|  | double | b
| ) |

| Returns: the maximum least squares error. Definition at line 119 of file leastsqs.cxx.

@ 1.3 log @Oops, try again. @ text @d231 1 a231 1