mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:45:07 -05:00
In weight calculation use unweighted variance from last regression
This fixes a positive feedback where weights could reach inf. Also change the SD_TO_DIST_RATIO constant to get close to the original response.
This commit is contained in:
@@ -86,6 +86,7 @@ RGR_FindBestRegression
|
||||
double *b0, /* estimated y axis intercept */
|
||||
double *b1, /* estimated slope */
|
||||
double *s2, /* estimated variance of data points */
|
||||
double *us2, /* estimated unweighted variance of data points */
|
||||
|
||||
double *sb0, /* estimated standard deviation of
|
||||
intercept */
|
||||
|
||||
Reference in New Issue
Block a user