Ver código fonte

Set statistics measured from real life

tags/v2.2.0^2^2
9seconds 3 meses atrás
pai
commit
1c0e847247
1 arquivos alterados com 6 adições e 2 exclusões
  1. 6
    2
      mtglib/internal/doppel/stats.go

+ 6
- 2
mtglib/internal/doppel/stats.go Ver arquivo

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

Carregando…
Cancelar
Salvar