Clean up.
This commit is contained in:
14
src/lib.rs
14
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);
|
||||
|
||||
Reference in New Issue
Block a user