Struct ratel_bandit::ExponentialBandit
source · pub struct ExponentialBandit { /* private fields */ }
Expand description
A bandit whose arms distribute rewards according to the exponential distributions.
Implementations§
source§impl ExponentialBandit
impl ExponentialBandit
sourcepub fn new(lambdas: Vec<f64>) -> ExponentialBandit
pub fn new(lambdas: Vec<f64>) -> ExponentialBandit
Initializes a new Bandit where each arm distributes rewards according to an exponential distribution.
Trait Implementations§
source§impl Bandit<f64> for ExponentialBandit
impl Bandit<f64> for ExponentialBandit
source§fn max_reward(&self) -> f64
fn max_reward(&self) -> f64
The maximum average reward of all the arms.
Auto Trait Implementations§
impl RefUnwindSafe for ExponentialBandit
impl Send for ExponentialBandit
impl Sync for ExponentialBandit
impl Unpin for ExponentialBandit
impl UnwindSafe for ExponentialBandit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more