1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! # Ratel
//!
//! A library for running multi-armed bandit simulations.
//!
//! The simulation has two components: a Bandit with some number of arms which each has a payout
//! according to some distribution, and an Agent that uses some strategy to learn the optimal
//! bandit arm. A Game then consists of an Agent learning about a Bandit by pulling arms according
//! to its preferred strategy.

#[cfg(test)]
#[macro_use]
extern crate lazy_static;

pub use agent::{Agent, EpsilonGreedyAgent, GreedyAgent, OptimisticAgent};
pub use bandit::{
    Bandit, BinomialBandit, ExponentialBandit, GammaBandit, GaussianBandit, LogNormalBandit,
};
pub use game::Game;
pub use util::{Counter, HarmonicStepper, print_hms, RecordCounter, Stepper};

mod agent;
mod bandit;
mod game;
mod util;