|
TPCCLIB
|
Least median of squares estimate for single data. More...
#include "libtpcmodel.h"Go to the source code of this file.
Functions | |
| double | least_median_of_squares (double *data, int n) |
| Fit a constant (horisontal straight line) to the data by minimising the median of squared residuals. | |
| int | lmsQSort (const void *par1, const void *par2) |
Least median of squares estimate for single data.
Definition in file lms.c.
| double least_median_of_squares | ( | double * | data, |
| int | n ) |
Fit a constant (horisontal straight line) to the data by minimising the median of squared residuals.
The algorithm is described in P.J. Rousseeuw: Least Median of Squares Regression, Journal of the American Statistical Association, Vol. 79, No. 388 (1984), 871-880.
| data | Data array |
| n | Number of data values |
Definition at line 21 of file lms.c.
| int lmsQSort | ( | const void * | par1, |
| const void * | par2 ) |
Compares two numbers.
| par1 | value nr 1 |
| par2 | value nr 2 |
Definition at line 59 of file lms.c.
Referenced by least_median_of_squares().