Reduce noise in refclock sample dispersions

Use the estimated dispersion only if it's higher than long-term average.
This should improve performance with short polling intervals.
This commit is contained in:
Miroslav Lichvar
2010-03-02 13:07:37 +01:00
parent 97f2f16fd6
commit b9b0326d15
3 changed files with 85 additions and 8 deletions

View File

@@ -61,6 +61,11 @@ RGR_WeightedRegression
extern double RGR_GetTCoef(int dof);
/* Return the value to apply to the variance to make an upper one-sided
test assuming a chi-square distribution. */
extern double RGR_GetChi2Coef(int dof);
/* Return a status indicating whether there were enough points to
carry out the regression */