Trait ratel_bandit::Bandit
source · pub trait Bandit<T: ToPrimitive> {
// Required methods
fn arms(&self) -> usize;
fn best_arm(&self) -> usize;
fn mean(&self, arm: usize) -> f64;
fn reward(&self, arm: usize) -> T;
fn std(&self, arm: usize) -> f64;
// Provided methods
fn max_reward(&self) -> f64 { ... }
fn means(&self) -> Vec<f64> { ... }
fn stds(&self) -> Vec<f64> { ... }
}
Expand description
A trait for common members of the Bandits
Required Methods§
Provided Methods§
sourcefn max_reward(&self) -> f64
fn max_reward(&self) -> f64
The maximum average reward of all the arms.