]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Regenerate critical values for number of runs
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 11 Aug 2010 16:45:17 +0000 (18:45 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 11 Aug 2010 16:50:23 +0000 (18:50 +0200)
Generate more values to allow regression with 128 samples. Possibly a
different approach was used to generate the values, or the previous table
was actually using 11% critical region and had an extra value in the
12th place.

regress.c

index b522e43b0e6fe73c87778d4cbc07fc2025d1334c..372e46223225350d5c899c06c24683f32f9b9d8f 100644 (file)
--- a/regress.c
+++ b/regress.c
@@ -177,20 +177,20 @@ typedef struct {
 /* Critical value for number of runs of residuals with same sign.  10%
    critical region for now */
 
-static int critical_runs10[] =
-{ 0,  0,  0,  0,  0,  0,  0,  0,  3,  3,
-  4,  4,  4,  4,  5,  5,  6,  6,  7,  7,
-  7,  8,  8,  9,  9, 10, 10, 10, 11, 11,
- 12, 12, 13, 13, 14, 14, 14, 15, 15, 16,
- 16, 17, 17, 18, 18, 18, 19, 19, 20, 20,
-
-  /* Note that 66 onwards are bogus - I haven't worked out the
-     critical values */
- 21, 21, 22, 22, 23, 23, 23, 24, 24, 25,
- 25, 26, 26, 27, 27, 28, 28, 28, 28, 28,
- 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
- 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28, 28, 28
+static char critical_runs10[] = {
+  0,  0,  0,  0,  0,  0,  0,  0,  3,  3, 
+  4,  4,  4,  5,  5,  6,  6,  6,  7,  7, 
+  8,  8,  9,  9,  9, 10, 10, 11, 11, 12, 
+ 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 
+ 17, 17, 17, 18, 18, 19, 19, 20, 20, 21, 
+ 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 
+ 26, 26, 27, 27, 27, 28, 28, 29, 29, 30, 
+ 30, 31, 31, 32, 32, 32, 33, 33, 34, 34, 
+ 35, 35, 36, 36, 37, 37, 38, 38, 39, 39, 
+ 39, 40, 40, 41, 41, 42, 42, 43, 43, 44, 
+ 44, 45, 45, 46, 46, 46, 47, 47, 48, 48, 
+ 49, 49, 50, 50, 51, 51, 52, 52, 53, 53, 
54, 54, 54, 55, 55, 56, 56, 57, 57, 58
 };
 
 /* ================================================== */