From 88f2575e1be7ee2f4fcb20ff031770352fa17ff3 Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Wed, 24 Oct 2018 11:15:55 +0200 Subject: [PATCH] Clean up. --- src/lib.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fe5a7cd..ac5f27e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,17 +31,6 @@ fn draw_margin(p: f64, beta: f64, total_players: f64) -> f64 { math::icdf((p + 1.0) / 2.0) * total_players.sqrt() * beta } -/* -Constants::Constants() { - double INITIAL_MU = 25.0; - double INITIAL_SIGMA = INITIAL_MU / 3.0; - double TOTAL_PLAYERS = 2.0; - - this->BETA = INITIAL_SIGMA / 2.0; - this->EPSILON = draw_margin(0.1, this->BETA, TOTAL_PLAYERS); - this->GAMMA = INITIAL_SIGMA / 100.0; -} -*/ pub fn rate(rating_groups: &[&[Gaussian]]) { let flatten_ratings = rating_groups .iter() @@ -273,9 +262,6 @@ mod tests { let chris = Gaussian::from_mu_sigma(MU, SIGMA); let darren = Gaussian::from_mu_sigma(MU, SIGMA); - // println!("alice: {:?}", alice); - // println!("bob: {:?}", alice); - rate(&[&[alice], &[bob], &[chris], &[darren]]); assert_eq!(true, false);