functor (P : RateBanditParam) -> sig type bandit = banditEstimates val initialBandit : bandit val step : bandit -> float -> int * bandit end