]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
regress: make minimum number of samples for regression public
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Apr 2014 14:31:48 +0000 (16:31 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Apr 2014 15:15:13 +0000 (17:15 +0200)
regress.c
regress.h

index 9fcbffbd63a4903bf1b2a583746db3407cd437ff..6847a1cd254b24fa8f0bfab50b0597517abba125 100644 (file)
--- 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 */
index b8d0d506f7a07bebd2ab41165b29b0e22ebacc71..0dfce9ad2abb8e4222eede459cae33b10cdacc34 100644 (file)
--- 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 */