From: Miroslav Lichvar Date: Thu, 10 Apr 2014 14:31:48 +0000 (+0200) Subject: regress: make minimum number of samples for regression public X-Git-Tag: 1.30-pre1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae104b5c28f4e1b49b31d764438600679a3002e2;p=thirdparty%2Fchrony.git regress: make minimum number of samples for regression public --- diff --git a/regress.c b/regress.c index 9fcbffbd..6847a1cd 100644 --- a/regress.c +++ b/regress.c @@ -209,8 +209,6 @@ n_runs_from_residuals(double *resid, int n) /* Return a boolean indicating whether we had enough points for regression */ -#define MIN_SAMPLES_FOR_REGRESS 3 - int RGR_FindBestRegression (double *x, /* independent variable */ diff --git a/regress.h b/regress.h index b8d0d506..0dfce9ad 100644 --- a/regress.h +++ b/regress.h @@ -66,6 +66,9 @@ extern double RGR_GetChi2Coef(int dof); points */ #define REGRESS_RUNS_RATIO 2 +/* Minimum number of samples for regression */ +#define MIN_SAMPLES_FOR_REGRESS 3 + /* Return a status indicating whether there were enough points to carry out the regression */