FairnessModel

Trait FairnessModel 

Source
pub trait FairnessModel: Debug {
    // Required methods
    fn allocate_budget(&self, algorithms: &[Box<dyn Sorter>]) -> Vec<usize>;
    fn name(&self) -> &str;
}
Expand description

Fairness model trait for allocating step budgets

Required Methods§

Source

fn allocate_budget(&self, algorithms: &[Box<dyn Sorter>]) -> Vec<usize>

Allocate step budgets to algorithms

§Arguments
  • algorithms - Current state of all algorithms
§Returns
  • Vector of budgets (comparisons) for each algorithm
Source

fn name(&self) -> &str

Get the model’s display name

Implementors§