mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 13:15:07 -05:00
regress: make minimum number of samples for regression public
This commit is contained in:
@@ -209,8 +209,6 @@ n_runs_from_residuals(double *resid, int n)
|
|||||||
/* Return a boolean indicating whether we had enough points for
|
/* Return a boolean indicating whether we had enough points for
|
||||||
regression */
|
regression */
|
||||||
|
|
||||||
#define MIN_SAMPLES_FOR_REGRESS 3
|
|
||||||
|
|
||||||
int
|
int
|
||||||
RGR_FindBestRegression
|
RGR_FindBestRegression
|
||||||
(double *x, /* independent variable */
|
(double *x, /* independent variable */
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ extern double RGR_GetChi2Coef(int dof);
|
|||||||
points */
|
points */
|
||||||
#define REGRESS_RUNS_RATIO 2
|
#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
|
/* Return a status indicating whether there were enough points to
|
||||||
carry out the regression */
|
carry out the regression */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user