TruncatedExponential#
- class statrl.settings.bandits.stochastic.anytime.envs.distributions.TruncatedExponential(p, trunc)[source]#
Bases:
objectExponential arm clipped at
trunc, with mass piling on the boundary.Kept custom rather than delegating to
scipy.stats.truncexpon, which renormalizes the tail instead of clipping it and therefore describes a different distribution.- Parameters:
Methods
__init__(p, trunc)sample()Draw one reward, clipped at
trunc.