#include <stdlib.h>#include <stdio.h>#include <math.h>#include "include/mestim.h"#include "include/median.h"Go to the source code of this file.
Functions | |
| double | mEstim (double *data, int nr, int iterNr, double cutoff) |
| double | huber (double x, double b) |
| double huber | ( | double | x, |
| double | b | ||
| ) |
| double mEstim | ( | double * | data, |
| int | nr, | ||
| int | iterNr, | ||
| double | cutoff | ||
| ) |
Fit a constant (horisontal straight line) to the data with M-estimator.
The algorithm is described in the lecture notes of Nonlinear signal processing course of Tampere university of technology http://www.cs.tut.fi/~eeroh/nonlin.html
| data | Data array |
| nr | Number of data values |
| iterNr | Number of iterations |
| cutoff | cutoff point |
Definition at line 59 of file mestim.c.
References dmedian(), and huber().
Referenced by test_re().
1.8.0