Documentation ¶
Index ¶
- Variables
- type Mab
- func (m *Mab) GetAmount(displays float64, clicks float64, total float64) float64
- func (m *Mab) MaxClick(rotations map[string]float64) float64
- func (m *Mab) SelectMaxClickedBanners(amounts map[string]float64, maxAmount float64) []string
- func (m *Mab) SelectOne(banners []string) string
- func (m *Mab) Ucb(banners []string, clicks map[string]int, displays map[string]int) (string, error)
- func (m *Mab) ZeroDisplays(banners []string, displays map[string]int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrZeroDisplays = fmt.Errorf("there are no displays for banners")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.