From ae104b5c28f4e1b49b31d764438600679a3002e2 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 10 Apr 2014 16:31:48 +0200 Subject: [PATCH] regress: make minimum number of samples for regression public --- regress.c | 2 -- regress.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/regress.c b/regress.c index 9fcbffb..6847a1c 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 b8d0d50..0dfce9a 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 */