Sfoglia il codice sorgente

Set statistics measured from real life

tags/v2.2.0^2^2
9seconds 1 mese fa
parent
commit
1c0e847247
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 6
    2
      mtglib/internal/doppel/stats.go

+ 6
- 2
mtglib/internal/doppel/stats.go Vedi File

@@ -11,8 +11,12 @@ const (
11 11
 	StatsLowK        = 0.01
12 12
 	StatsHighK       = 10.0
13 13
 
14
-	StatsDefaultK      = 0.6
15
-	StatsDefaultLambda = 0.002
14
+	// do not calculate statistics if we have < than this number of durations
15
+	MinDurationsToCalculate = 100
16
+
17
+	// these values are taken from ok-cdn. measured from moscow site.
18
+	StatsDefaultK      = 1.2908978568647322
19
+	StatsDefaultLambda = 1.4258402622793287
16 20
 )
17 21
 
18 22
 // Stats is responsible for generating values that are distributed according

Loading…
Annulla
Salva