regress: add linear regression with two independent variables

This commit is contained in:
Miroslav Lichvar
2016-08-09 15:28:32 +02:00
parent 507a01ab17
commit 27d59e54cc
2 changed files with 66 additions and 0 deletions

View File

@@ -119,4 +119,16 @@ RGR_FindBestRobustRegression
int *n_runs,
int *best_start);
int
RGR_MultipleRegress
(double *x1, /* first independent variable */
double *x2, /* second independent variable */
double *y, /* measured data */
int n, /* number of data points */
/* The results */
double *b2 /* estimated second slope */
);
#endif /* GOT_REGRESS_H */