Procházet zdrojové kódy

Set statistics measured from real life

tags/v2.2.0^2^2
9seconds před 5 měsíci
rodič
revize
1c0e847247
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6
    2
      mtglib/internal/doppel/stats.go

+ 6
- 2
mtglib/internal/doppel/stats.go Zobrazit soubor

11
 	StatsLowK        = 0.01
11
 	StatsLowK        = 0.01
12
 	StatsHighK       = 10.0
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
 // Stats is responsible for generating values that are distributed according
22
 // Stats is responsible for generating values that are distributed according

Načítá se…
Zrušit
Uložit