Refactor so we can see if there is any way to improve the performance

This commit is contained in:
2022-12-16 15:38:29 +01:00
parent 5eb8e62d6e
commit 6dd84f7fd2
3 changed files with 57 additions and 42 deletions

View File

@@ -1,11 +1,11 @@
use crate::{gaussian::Gaussian, BETA, GAMMA, N_INF};
use crate::{gaussian::Gaussian, BETA, GAMMA};
#[derive(Clone, Copy, Debug)]
pub struct Player {
pub(crate) prior: Gaussian,
pub(crate) beta: f64,
pub(crate) gamma: f64,
pub(crate) draw: Gaussian,
// pub(crate) draw: Gaussian,
}
impl Player {
@@ -14,7 +14,7 @@ impl Player {
prior,
beta,
gamma,
draw: N_INF,
// draw: N_INF,
}
}
@@ -29,7 +29,7 @@ impl Default for Player {
prior: Gaussian::default(),
beta: BETA,
gamma: GAMMA,
draw: N_INF,
// draw: N_INF,
}
}
}