reward

package
v0.4.1-rc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRewardFactor

func CalculateRewardFactor(missCount, m, s int64) float64

CalculateRewardFactor returns the reward factor calculated using a logarmithic model based on miss counters. missCount is the current miss count, m is the maximum possible miss counts, and s is the smallest miss count in the period. If the logarimthic function returns NaN or Inf the Reward Factor returned will be 0. rewardFactor = 1 - logₘ₋ₛ₊₁(missCount - s + 1)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL